We have a big application bigger than 500ko and we need a littlefs partition, so we end up with a mcuboot_secondary smaller than the mcuboot_primary (actually we put it to 1ko because we will not use it).
- We know that upgrading will not be possible.
- We can build the application and flash it, however the application does not work properly: no logs output.
What happened ? Is-it possible that this configuration is impossible and no error and no warning were reported at compilation ?
Below is the pm_static.yml for the board that we tried, maybe there is an error somewhere, but we double checked all the values:
app:
address: 0xc200
end_address: 0xa0000
region: flash_primary
size: 0x93e00
external_flash:
address: 0x0
end_address: 0x400000
region: external_flash
size: 0x400000
littlefs_storage:
address: 0x0
device: mx25r32_qspi
end_address: 0x400000
region: external_flash
size: 0x400000
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: 0x1000
before:
- mcuboot_primary_app
region: flash_primary
size: 0x200
mcuboot_primary:
address: 0xc000
end_address: 0xa0000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
sharers: 0x1
size: 0x94000
span: *id001
mcuboot_primary_app:
address: 0xc200
end_address: 0xa0000
orig_span: &id002
- app
region: flash_primary
size: 0x93e00
span: *id002
mcuboot_secondary:
address: 0xa0000
end_address: 0xa1000
placement:
after:
- mcuboot_primary
align:
start: 0x1000
align_next: 0x1000
region: flash_primary
share_size:
- mcuboot_primary
size: 0x1000
provisionning:
address: 0xa1000
end_address: 0x100000
placement:
align:
start: 0x1000
before:
- end
region: flash_primary
size: 0x5f000
sram_primary:
address: 0x20000000
end_address: 0x20040000
region: sram_primary
size: 0x40000