mbed-ce / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
76 stars 14 forks source link

STM32U5 UART loses data with baud rates higher than 67800 #310

Open JohnK1987 opened 1 month ago

JohnK1987 commented 1 month ago

STM32U5 UART loses data with baud rates higher than 67800 - need to be verified. This potential issue, based on #227, was created for easy track of the issue

We need:

wdx04 commented 1 month ago

To use higher baud rates for serial communication it is required to disable deep sleep with the sleep_manager_lock_deep_sleep() function. Also, when DMA is used, it is possible to achieve very high baud rates without data loss. For example, with my BurstSerial library, I archived 10M baud rate (the theoretical maximum for 16x oversampling) on a NUCLEO-U545RE board, when communicating with the PC through the ST-LINK virtual COM port.

lefebvresam commented 1 month ago

Once I have some time, I will try to reproduce the issue, strip down my project en put an example online.