cancel
Showing results for 
Search instead for 
Did you mean: 

How to load a firmware from M95P32 EEPROM ?

malarab
Senior II

Hello,

I need to and a FOTA to my application.

I will receive the firmware with BLE and store it on M95P32 EEPROM. Then i need to load it on the mcu (STM32WL).

I cannot find any example or resources that explain how can i  load a firmware from M95P32 EEPROM.

I will use also another part from the EPPROM to log some data, How can i manage the EEPROME to reserve a section for the firmware and an other section for datalog ?

Thank you,

Sincerely.

1 ACCEPTED SOLUTION

Accepted Solutions
malarab
Senior II

i have make finally my custom bootloader.

the entry point of the code is the bootloader (CM4 only),

if there is new app on the eeprom, the code jump to the existing app on the flash (executing CM4 and CM0PLUS)

the application (in CM0PLUS) save the new FW on the EEPROME (for booth cores)

then the app jump to the bootloader again to download the new firmware from the eeprom to the flash

View solution in original post

1 REPLY 1
malarab
Senior II

i have make finally my custom bootloader.

the entry point of the code is the bootloader (CM4 only),

if there is new app on the eeprom, the code jump to the existing app on the flash (executing CM4 and CM0PLUS)

the application (in CM0PLUS) save the new FW on the EEPROME (for booth cores)

then the app jump to the bootloader again to download the new firmware from the eeprom to the flash