STM32L4: How to program MCU on-board flash from binary stored in external FLASH?
I have a design that uses and STM32L4 series MCU. The device will be hard to physically access, but has a serial connection to the 'outside' world on UART 4. The board also has a 4 Mbit flash connected to the MCU via (bit-banged) SPI.
When I need to update the FW in the MCU I'd like be able to send the binary file down the serial connection, store it in the external SPI flash, verify the download is good, and then copy flash the MCU FLASH so that the next boot up will be with the new FW.
Can someone please first verify if this is possible, and second point me to some resources on how to implement it?
Thanks!
