bootloader: Reimplement flash::run_command() in C.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 10 Nov 2019 17:58:44 +0000 (18:58 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
commitd6daa720f563825f35bf347dfd6948109e40bc5f
tree32b022dfbd317813b69392c923e739dc95cd68ff
parentba2d74b93676c335eb41cdb6d75978cf20a9340a
bootloader: Reimplement flash::run_command() in C.

While running a flash command that operates on a given flash block,
executing code from that same flash block will cause read-while-write
errors that lock up the core.

Thus we need to ensure that no interrupt handler will execute
during that time, and we also need to relocate the respective
flash code to RAM.
SConscript.libcommon
src/bootloader/flash.rs
src/common/flash.c [new file with mode: 0644]