Hello!
I continue to get started with SCI2 module operating in UART mode. At the moment the situation is as follows: data are sent normally in polling and interrupt mode. But I cannot still receive data.
Pins LIN2RX and LIN2TX are connected together externally on the TMDX570LS20SUSB kit. I wish to receive sent data in this way. Each sent byte should be received. The problem is so that sent bytes are not received. I tried both polling and interrupt modes. The same result for two approaches. I thought in the beginning that RX INT is incorrectly handled. Now polling mode is used for both data transmission and reception. This does not help. Obviously RX RDY flag is not set after byte is sent. I do not understand what is wrong. RX ENA and RX FUNC bits are set in the sciInit () function. Isn't this enough for data reception in polling mode? Could you please help me to solve this problem. Otherwise I will waste time without result.
I also tried to use loop back function. This does not help too.
The example project is attached.
Received data is read from SCIRD register. What does compatibility SCI mode mean? I suppose it is not a multi-buffer mode. Is it? MBUF MODE = 0 (the multi-buffer mode is disabled) and TIMING MODE = 1 (asynchronous timing is used). What is incorrect?
Best regards,
Vitalij