2018-03-02 11:17 AM
Hi There, I'd like some advice on where I can find the resources I need to figure out how I can update the code on a STM32F4 series MCU which will be used in conjunction with BlueNRG-MS bluetooth chip.
I want to be able to allow my customers to update the firmware on the product from their mobile phone app which we will build. I've had a search about but can't find how I should code the STM32 for this scenario, any hardware gotcha's when connecting the two chips, and finally example code for Android & iOS to use to upload the new firmware.
Any advice greatly appreciated. Thanks.
2018-03-03 10:14 AM
You'd likely want to keep a small loader on the STM32F4 side that can open/maintain a com link to your updater app. The mechanics would be similar to the IAP examples (USART, Ethernet) and pull an application image to a starting point deeper into the FLASH. If you can stage the update to an external storage device, or unused area of FLASH it would improve robustness/recovery.