linflexd_uart_driver tx complete interrupt

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

linflexd_uart_driver tx complete interrupt

592 Views
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 Kudos
0 Replies