PX4 / PX4-Bootloader

PX4 Bootloader for PX4FMU, PX4IO and PX4FLOW
Other
263 stars 545 forks source link

stm32: disable overrun #214

Closed julianoes closed 2 years ago

julianoes commented 2 years ago

This was found on the Mantis where the following happened:

  1. Boot command is sent to a bootloader without a firmware flashed.
  2. After boot command, there is a 100 ms delay.
  3. During that time, more data is sent to the bootloader causing an overrun.
  4. Without overrun disabled, this will set the ORE flag, and reads will fail because RXNE is not set.

By disabling the overrun flag we can recover from an overrun.