MBDT support for UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MBDT support for UART

421 Views
anagha12
Contributor I

We are using UART asynchronous transfer S32 CT example from NXP toolbox for S32K344 board. We have generated the code and using S32 IDE for debugging purpose.

Initially, whenever character is received UART RX interrupt gets triggered(MBDT_Uart_Callback function getting called). But when we do a free run from that point, even if nothing has been sent over UART, still UART RX interrupt handler is getting called, which is not as expected. 

Please help us to resolve this issue.

 

 

 

#s32k3  #MBDT

0 Kudos
Reply
2 Replies

275 Views
georgevictor
NXP Employee
NXP Employee

Hi, @anagha12,

The MBDT_Uart_Callback used for the UART asynchronous transfer in the S32CT example is defined in the external configuration tool in the UART component. Based on the RTD documentation, this notification function follows the Uart_CallbackType function signature. An important parameter for this notification is the event that triggered the call. Here are the macros for the event parameter:

  • _EVENT_RX_FULL = 0x00U,
  • _EVENT_TX_EMPTY = 0x01U,
  • _EVENT_END_TRANSFER = 0x02U,
  • _EVENT_ERROR = 0x03U;

To address your question, between a UART transmission you can have multiple notification calls that can be differentiated based on the event that triggered them. For more in-depth details please check the UART user manual found inside the RTD folder.

Best regards,

Victor

0 Kudos
Reply

328 Views
avinashstarkenn
Contributor III

Hello,

Getting the same issue...

Status?

0 Kudos
Reply