Julian Oes eb9fd7ec76 tools/bootloader: add force-erase option
If the STM32H7 fails to program or erase a full chunk of 256 bytes, the
ECC check will trigger a busfault when trying to read from it.

To speed up erasing and optimize wear, we read before erasing to check
if it actually needs erasing. That's when a busfault happens and the
erase time outs.

The workaround is to add an option to do a full erase without check.

Credit goes to:
https://github.com/ArduPilot/ardupilot/pull/22090

And the protocol option added to the bootloader is the same as for
ArduPilot, so compatible.

Signed-off-by: Julian Oes <julian@oes.ch>
2024-06-07 09:24:40 +12:00
..
2024-04-17 13:28:07 +12:00
2021-10-19 13:29:26 -04:00
2023-10-18 15:30:36 -04:00
2021-10-19 13:29:26 -04:00
2024-04-16 11:14:13 -04:00
2022-09-15 13:13:49 -04:00