linflexd_uart_driver tx complete interrupt

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

linflexd_uart_driver tx complete interrupt

783 次查看
danny_bergh
Contributor I

Hi All,

In our automotive project we are using the S32 design studio (for power architecture, S32PA BETA v2.9.0). During the usage of the linflex uart driver, i've noticed unexpected behavior. The TX callback is called at the end of the transfer, but it's not allowed to send new data from that interrupt. Not on the UART_EVENT_TX_EMPTY nor the UART_EVENT_END_TRANSFER event. And by now allowed it's more, the TX interrupt is not triggered.

By moving the code (as done in the attached patch file):

  /* Clear the flag */
  LINFLEXD_ClearStatusFlag(base, LINFlexD_UART_DATA_TRANSMITTED_FLAG);

Above the txCallback handler call (with UART_EVENT_END_TRANSFER event), this is solved. Since the interrupt is "handled" before sending new data.

Otherwise i have to restart the uart transmission from the main loop. Is this as expected?

0 项奖励
回复
0 回复数