How to flash application to specific address.

Hi,

On the nRF54L15DK board, I flashed an application and then performed a full erase. However, after erasing, I noticed that approximately 2000 bytes of memory were still occupied when reading back the flash. Could you please clarify why this portion of memory remains in use even after recovering the device?

Additionally, on the nRF52833DK using nRF Connect SDK v2.5.0, I was able to flash my application to a specific address using the CONFIG_FLASH_LOAD_OFFSET configuration. However, on the nRF54L15DK with nRF Connect SDK v3.2.0, this configuration no longer works and appears to be deprecated. Could you please advise on the correct method to flash the application to a specific address as per our requirements in the newer SDK version?

Thank you for your guidance.

Best regards,
Theja.

  • Try to include the following in your pm_static.yml file: 

    bootloader:
      address: 0x0
      end_address: 0x20000
      region: flash_primary
      size: 0x20000
    app:
      address: 0x20000
      end_address: 0x80000
      region: flash_primary
      size: 0x60000
    slot0_partiton:
      address: 0x20000
      end_address: 0x80000
      orig_span: &id001
      - app
      region: flash_primary
      sharers: 0x1
      size: 0x60000
      span: *id001
    slot1_partiton:
      address: 0x80000
      end_address: 0xe0000
      region: flash_primary
      size: 0x60000
    storage:
      address: 0xe0000
      end_address: 0xe9000
      region: flash_primary
      size: 0x9000
    custom_data:
      address: 0xe9000
      end_address: 0x165000
      region: flash_primary
      size: 0x7c000

    Here the app is placed in slot0. You can run the "memory report" action in VS code to confirm the placement.

Related