This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

status of SRAM during an over the air update

The project I am working on stores information in SRAM while it waits for the radio to get in range and transmit data.

I want to know if I can put items in SRAM buffer that will remain there during an over the air firmware update.

I will not change the boot loader.  I am concerned there might be a reset during the over the air update that

will invalidate the contents of all SRAM.

Parents
  • Hi,

    The DFU process involves system resets (soft), but this does not reset RAM (reset behavior). It is in other words possible to retain the data through DFU given that the data is kept in a non-initialized section of the RAM.  This will require changes in the linker configuration for both application and bootloader. I can provide instructions on how to declare a non-initialized  RAM section if needed, just need to know which toolchain you are using.  

Reply
  • Hi,

    The DFU process involves system resets (soft), but this does not reset RAM (reset behavior). It is in other words possible to retain the data through DFU given that the data is kept in a non-initialized section of the RAM.  This will require changes in the linker configuration for both application and bootloader. I can provide instructions on how to declare a non-initialized  RAM section if needed, just need to know which toolchain you are using.  

Children
Related