SDK: v2.6.0. nRF5340 custom board
Hello I'm trying to do an static partitioning scheme using a pm_static.yml file and also I want to use NVS to store some data.
The problem is that when I add NVS to the project a nvs_storage partition is automatically generated inside mcuboot_primary_app and I don't want that, I want a separate partition for NVS (storage1) because I'm going to do DFU and I dont want to lose that data on every DFU process.
What can I do to delete nvs_storage partition?
This is my pm_static.yml
app:
address: 0x00c200
end_address: 0x074000
region: flash_primary
size: 0x067e00
mcuboot:
address: 0x000000
end_address: 0x00c000
placement:
before:
- mcuboot_primary
region: flash_primary
size: 0x00c000
mcuboot_pad:
address: 0x00c000
end_address: 0x00c200
placement:
align:
start: 0x004000
before:
- mcuboot_primary_app
region: flash_primary
size: 0x000200
mcuboot_primary:
address: 0x00c000
end_address: 0x074000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
sharers: 0x1
size: 0x068000
span: *id001
mcuboot_primary_app:
address: 0x00c200
end_address: 0x074000
orig_span: &id002
- app
region: flash_primary
size: 0x067e00
span: *id002
mcuboot_secondary:
address: 0x074000
end_address: 0x0dc000
placement:
after:
- mcuboot_primary
align:
start: 0x004000
region: flash_primary
share_size:
- mcuboot_primary
size: 0x068000
# NetCore secondary partition in internal flash. Needed for DFU
mcuboot_secondary_1:
address: 0x0dc000
end_address: 0x0fc000
placement:
after:
- mcuboot_secondary
region: flash_primary
size: 0x020000
storage1:
address: 0x0fc000
end_address: 0x100000
placement:
after:
- mcuboot_secondary_1
region: flash_primary
size: 0x004000
otp:
address: 0xff8100
end_address: 0xff83fc
region: otp
size: 0x2fc
pcd_sram:
address: 0x2006f000
end_address: 0x20071000
placement:
before:
- networkCore_sram
- end
region: sram_primary
size: 0x2000
networkCore_sram:
address: 0x20071000
end_address: 0x20080000
placement:
before:
- end
region: sram_primary
size: 0xF000
shared_sram:
address: 0x20000000
end_address: 0x20001000
placement:
before:
- sram_primary
region: sram_primary
size: 0x1000
sram_primary:
address: 0x20010000
end_address: 0x2006f000
region: sram_primary
size: 0x6e000
And this is the generated memory report:

Regards!

