Skip to main content
Explorer
November 13, 2023
Solved

How to load a firmware from M95P32 EEPROM ?

  • November 13, 2023
  • 1 reply
  • 1102 views

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.

    This topic has been closed for replies.
    Best answer by malarab

    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

    1 reply

    malarabAuthorAnswer
    Explorer
    May 16, 2024

    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