bootloader: Refuse to erase the second flash sector.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jul 2019 20:05:03 +0000 (22:05 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
commit1b1fe0d53c04d6e7d7ff81387399813fb8147161
treedcb4e7aa35a6a69006d64e8de0c06a00dde42d58
parentfafbe49123de3572c496e964fc3048b3ab2e28d8
bootloader: Refuse to erase the second flash sector.

The second flash sector (address 0x400) stores the flash configuration
field -- resetting the MCU with 0xff stored in there bricks the device.
src/bootloader/bootloader.rs