- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In one of my files I have a while-loop which puts an array into the UART using Cy_SCB_UART_PutArray() and in another file I am receiving it with a while-loop using Cy_SCB_UART_GetArray().
Cy_SCB_UART_PutArray(UART_HW, buffer, sizeof(buffer));
Cy_SCB_UART_ClearTxFifoStatus(UART_HW, CY_SCB_UART_TX_NOT_FULL);
Receive
uint8_t rxBuffer[5];
cy_rslt_t result;
result = Cy_SCB_UART_GetArray(UART_HW, &rxBuffer, sizeof(rxBuffer));
if(result != CY_SCB_UART_RX_NO_DATA)
{
for(int i = 0; i < sizeof(rxBuffer); i++)
{
printf("%c\r\n", (char) rxBuffer[i]);
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
notAnumber,
From the code fragments you included it is difficult to tell why your ISR is not being executed.
Is it possible to include your entire project in this thread?
Just to let you know if you weren't already familiar: Functions like xxx_GetArray() and xxx_PutArray() are blocking functions. In other words, they will not exit the function and proceed in the rest of the code until ALL the bytes are received or transmitted.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
notAnumber,
From the code fragments you included it is difficult to tell why your ISR is not being executed.
Is it possible to include your entire project in this thread?
Just to let you know if you weren't already familiar: Functions like xxx_GetArray() and xxx_PutArray() are blocking functions. In other words, they will not exit the function and proceed in the rest of the code until ALL the bytes are received or transmitted.
"Engineering is an Art. The Art of Compromise."