linflexd_uart_driver tx complete interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

linflexd_uart_driver tx complete interrupt

1,002件の閲覧回数
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 返答(返信)