UART Transmit Interrupt Driven api not working perfectly

I have one more problem. When I enable the Tx, the program is not moving out of the callback. and I have to disable the TX manually from callback everytime. The normal flow should be, after the check o TX is complete,  we have to disable the TX. But the program is not behaving in this way.
If you want to check this behaviour, you can do so in my project by observing how I have done it.4527.echo_bot.zip

Parents Reply
  • Hi Keval,

    I can see that you started with the echo-bot sample, but then have substantially updated the code. Unfortunately, I can not do the review of your whole code. Also, the zephyr uart API is extensively documented here: UART API

    Nonetheless, I have few comments as below.

    I do not know what you are trying to achieve and how you are doing this.

    Keval Patel said:
    As per API i need to call this tx_disable api after i get the uart_tx_complete returns true.

    That is not provided in the example (echobot), but yes, once the Transmission is complete, then you can Disable the Tx.

    Keval Patel said:
    but in my case i'm enable the uart_irq_tx  i do not return from my callback without the disable TX_interrupt.

    what are you trying to say / do here? I did not get you.

    I think you are trying to disable the TX once transmission is complete, 

    and then after the printing (print_uart) you are checking if TX is ready and then you are enabling the TX.

    So what error you are getting? Is there any output on the console? 

Children
No Data
Related