NRF5340 Internal Flash partition problems

Hi,

    The DFU(reuse ota code) partition configuration file I got from your technical support is as follows,It divides Flash(1024K) into the following regions:mcuboot(48K)、mcuboot_primary(480K)、

mcuboot_secondary(480K)、EMPTY_0(8K)、settings_storage(8K)
EMPTY_0:
  address: 0xfc000
  end_address: 0xfe000
  placement:
    after:
    - mcuboot_secondary
  region: flash_primary
  size: 0x2000
app:
  address: 0xc200
  end_address: 0x84000
  region: flash_primary
  size: 0x77e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x4000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x84000
  orig_span: &id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x78000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x84000
  orig_span: &id002
  - app
  region: flash_primary
  size: 0x77e00
  span: *id002
mcuboot_secondary:
  address: 0x84000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x78000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
pcd_sram:
  address: 0x2006e000
  end_address: 0x20070000
  placement:
    before:
    - rpmsg_nrf53_sram
    - end
  region: sram_primary
  size: 0x2000
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xfe000
  end_address: 0x100000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20000000
  end_address: 0x2006e000
  region: sram_primary
  size: 0x6e000
QS1:  I need about 64K space to store user configuration data, which cannot be erased after DFU,Please show me how to set up this partition?
QS2:  At first, I wanted to use partition "settings_storage" to store user data, but the technical support feedback said that this partition was dedicated to DFU. What are the detailed steps of our official standard DFU
Parents Reply
  • Hi Wang, 
    I don't think the information is correct. The settings_storage is independent from MCUBoot. 
    As far as I know, MCUBoot stores the DFU progress in the metadata in the image header, not in the settings_storage. 

    How do you plan to store your data ? If you are planning to use the settings module, then you can just increase the setting_storage size to the size of your need by defining: CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE

    By default CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x2000.



Children
No Data
Related