This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM57L843: SCI RX disconnected

Part Number: RM57L843


Hi,

I have two RM57L development boards.

I am working on SCI with DMA.I have configured SCI3 with DMA transfer and receive,SCI4 only DMA receive.

My setup is:

SCI3 tx of board-1 is connected to SCI4 rx of board-2.

SCI4tx of board-2 is connected to SCI3 rx of board-1.

Every thing is working fine. DMA is able to transfer data to SCI tx register and also able to read received data from rx register of SCI.

I am able to see the debug messages like TX TRANSFERED, RX RECEIVED on SCI 1 of development board.

Issue:

If I disconnect the RX line of one board, I should see the debug message RX FAILED .

How to check SCI is not receiving any data further. DMA will not trigger because RXRDY flag will not set. DMA will be in waiting state.

If I have to implement timeout feature in RM57L how could I implement. Please help me 

  • Hello Praveen,
    You have asked a simple question, but the answer will very much depend on the details of your implementation. In general I do not use DMA on serial port receive because I would need to know how many characters I will receive to setup the DMA packet such that you get an interrupt when the entire "string" is received. However, that may work for your implementation.

    To implement a timeout, I would implement an RTI timer interrupt. The timer period should be equal to your timeout period. You can disable the timer interrupt when your string is received. If the timer interrupt happens, you did not finish receiving the string in the allotted time.
  • Hi Bob Crosby,

    Thank you very much for the suggestion. I implemented RTI for timeout and its working fine.

    Regards,

    Praveen

  • Thank you for giving me this update. Would you please select the "Verify Answer" button on my response above?