flash address change when add CONFIG_BOOTLOADER_MCUBOOT=y

Hi,
I referred to the zephyr/samples/drivers/soc_flash_nrf/ code, and when I added CONFIG_BOOTLOADER_MCUBOOT=y, the flash storage started from address 0xfc000. Why did this address change?
storage_partition: partition@f8000 {
label = "storage";
reg = <0x000f8000 0x00008000>;
};
Also, am I able to change the storage_partition flash address? If yes, how can I change it?
Every time I try to change the storage_partition address, it still starts at 0xfc000.
Parents Reply
  • The latest part herr in your file sets the size and location of the settins partition:

    settings_storage:
    address: 0xfd000
    size: 0x1000

    You can change the address and size (this is just one page, you probaly want more). You also do not need to define everything in pm_static. It is OK to define what you want at specific locations, and then let the partition manager automatically place the rest (though en the end you probably want to fix it as you want static partitions when using DFU).

    If you want to look at examples, you can look at some of the pm_static files in the SDK. One example is this one.

Children
Related