nRF Connect: Partition Manager - adding additional partition

Hi,

I am trying to add an additional storage partition in flash to my project, however, to some reason, pm.yml file is not getting picked up during the build and I am not able to see my partition in partitions.yml, once it gets generated. 

This is the content of pm.yml:

storage:
  size: 0x1000
  placement:
    after: mcuboot_primary

I am not getting any errors from partition manager, too. 

I have tried to define it in pm_static.yml and it seems to be picking it up, however, complaining about the gap as I am using MCUBOOT, so not able to follow this route.

Please advice what is the best way to add this new flash partition to my project.

Parents
  • Hello,

    It must be added as static partition in your pm_static.yml file. For example:

    # Place storage partition at the end of cpuapp RRAM. Note: actual end
    # address is 0x175000 (1524kB) if all RRAM is allocated to the application core.
    # https://github.com/nrfconnect/sdk-find-my/blob/950dfd9d69443bc1eb5b098c08522e7c7c7b06f1/samples/locator_tag/boards/nrf54l15dk_nrf54l15_cpuapp.overlay#L7
    storage:
      size: 0x1000
      address: 0x164000
      end_address: 0x165000
      region: flash_primary

    Best regards,

    Vidar

Reply
  • Hello,

    It must be added as static partition in your pm_static.yml file. For example:

    # Place storage partition at the end of cpuapp RRAM. Note: actual end
    # address is 0x175000 (1524kB) if all RRAM is allocated to the application core.
    # https://github.com/nrfconnect/sdk-find-my/blob/950dfd9d69443bc1eb5b098c08522e7c7c7b06f1/samples/locator_tag/boards/nrf54l15dk_nrf54l15_cpuapp.overlay#L7
    storage:
      size: 0x1000
      address: 0x164000
      end_address: 0x165000
      region: flash_primary

    Best regards,

    Vidar

Children
No Data
Related