You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
TX_DONE event occurs before transmission is complete on STM32 async usart api.
In the attached image RTS pin state is controlled by the TX_DONE event. It is clear that the event is triggered before transmission is complete. This is because TX_DONE is generated when DMA finishes data transfer on transmit register and not when transmit register is empy.
To Reproduce
Steps to reproduce the behavior:
Have a uart peripheral correctly configured in async mode.
Use async TX and monitor TX_DONE event in conjuction with with tx line.
Bug occurs.
Expected behavior
TX_DONE should occur when peripheral tx register is empty.
Impact
Showstopper
Environment (please complete the following information):
Describe the bug
TX_DONE event occurs before transmission is complete on STM32 async usart api.
In the attached image RTS pin state is controlled by the TX_DONE event. It is clear that the event is triggered before transmission is complete. This is because TX_DONE is generated when DMA finishes data transfer on transmit register and not when transmit register is empy.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
TX_DONE should occur when peripheral tx register is empty.
Impact
Showstopper
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: