Hi,
I'm working with a custom board with TMS570LS0432 processor and i'm trying to use the SCI module to receive a byte from another similar board. I linked the boards with TX (sender) in RX (receiver) only. The receiver code stop in a while loop that check the flags:
uint32 sciReceiveByte(sciBASE_t *sci)
{
/* USER CODE BEGIN (16) */
/* USER CODE END */
// THE CODE STOPS HERE!!!!!!!!!!!!
while ((sci->FLR & (uint32)SCI_RX_INT) == 0U) //<-------------
{
}
return (sci->RD & (uint32)0x000000FFU);
}
The FLR flag register has the following value 0b00000000000000000000100100000100 that indicates a IDLE state. How can I solve this problem?
I'm using Halcogen to generate the HAL code using the following configurations: