Greetings,
Is there any methods to check the data that is written into uart tx fifo has been sent out by the hardware after calling uart_hal_tx_fifo_write(). It seems UART_TX_DONE interrupt just indicates tx fifo is empty instead of assuring the data has been actually sent out.
Regards
Any methods to check data in uart tx fifo has already been sent
-
- Posts: 200
- Joined: Sun Jun 23, 2024 6:18 pm
Re: Any methods to check data in uart tx fifo has already been sent
The ESP32 UART peripheral provides a UART_TX_DONE status bit, which is set when both the TX FIFO and the TX shift register are empty. This indicates that all the data has been transmitted.
https://docs.espressif.com/projects/esp ... /uart.html
https://esp32.com/viewtopic.php?t=10469
https://docs.espressif.com/projects/esp ... /uart.html
https://esp32.com/viewtopic.php?t=10469
Re: Any methods to check data in uart tx fifo has already been sent
Dear aliarifat794
Thanks a lot for the help. Both checking UART_TX_DONE status bit and adding a delay before sending the next byte are promising solutions. For checking the status bit, could you give some hints on how to get it, since I can't find any info in the idf document.
Best regards
Thanks a lot for the help. Both checking UART_TX_DONE status bit and adding a delay before sending the next byte are promising solutions. For checking the status bit, could you give some hints on how to get it, since I can't find any info in the idf document.
Best regards
-
- Posts: 1726
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Any methods to check data in uart tx fifo has already been sent
Yes, I think so. Maybe there is some other reasons causing my problem. I will check it again.
Who is online
Users browsing this forum: No registered users and 102 guests