I have a board with a SPI flash chip on it, and via a UART it can
receive a BIN file plus
metadata and write it to the SPI flash chip. This is all done with an
app that starts at
the 2nd sector of MCU flash (it's this same code that uses the UART
to download apps for the
bootstrap loader), and I have another app, a bootloader, that uses
IAP calls to sector by
sector erase/copy the BIN part of the app in SPI flash to MCU flash
and then branch to this
'downloaded' app, and it runs fine
↧