ARMmbed / mbed-os

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

STM32L4 Serial Overrun error Interrupt flags clear #15308

Open huarunlin opened 2 years ago

huarunlin commented 2 years ago

When I debugged the STM32L496vg, I found that the serial overrun error interrupt flag clearing process is inconsistent with the st reference manual

https://github.com/ARMmbed/mbed-os/blob/91b793c4fd1ad7f02b8db5a2e0d77daf63e5c836/targets/TARGET_STM/TARGET_STM32L4/serial_device.c#L60-L64

ST RM0351 Reference manual: image

mbedmain commented 2 years ago

@huarunlin thank you for raising this issue.Please take a look at the following comments:

Could you add some more detail to the description? A good description should be at least 25 words. What target(s) are you using? What toolchain(s) are you using? What Mbed OS version are you using? It would help if you could also specify the versions of any tools you are using? How can we reproduce your issue?

NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information.

jeromecoutant commented 2 years ago

Hi For history, code seems quite old since #5962

@huarunlin do you find a correction ?

jeromecoutant commented 2 years ago

Myabe you can check #14925 discussion ?