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

Set the memory map

I want to understand the ROM layout and set the memory map.

Please tell me how to know the layout of the current ROM.
(Mainly the range used by MBR area and FDS area)

Please tell me the procedure to change the range of MBR area and FDS area.
Also, I would like to write information such as logs to the ROM. Please tell me the procedure.
Should I use the ex.)nrf_fstorage_write() function?

Using

-SDK15.3.0

-RF52840

-S132

  • Hi

    The MBR will always take up the range from 0x0 to 0x1000 in the flash memory. Then the SoftDevice will be located on top of that (0x1000 to 0x27000 for S140 v7.0.1). On top of that comes the actual application firmware.

    If you want to store variables in flash and update them from time to time, I suggest looking into FDS. The flash can only be written to once. After that, you need to erase flash pages before writing to them again. This means that you can't just update a specific address X amount of times. The FDS will handle the placement of the flash records for you.

    Best regards,

    Simon

Related