MBDT support for UART

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MBDT support for UART

572 次查看
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 项奖励
回复
2 回复数

426 次查看
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 项奖励
回复

479 次查看
avinashstarkenn
Contributor III

Hello,

Getting the same issue...

Status?

0 项奖励
回复