Partition Alignment

Hi,

I am using the nrf54l15 on a custom board in our current project and want to use it with DFU over BLE FOTA as well as TF-M.

I can compile the project just fine before adding DFU as described in your tutorial (tutorial) The only diffrence being that i started from the Blinky Example.

When i try to compile the project it gives me an alignment error:

Fullscreen
1
2
3
4
5
6
7
!!!Partition alignment error!!!
The non-secure start address in pm_static.yml or generated partition.yml is: 0x64600
which is not aligned with the SPU/MPC HW requirements.
In nRF53/nRF91 series the flash region need to be aligned with the SPU region size.
In nRF54L15 the flash region need to be aligned with the MPC region size.
Refer to the documentation section 'TF-M partition alignment requirements'
for more information.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here is my compiled partitons.yml (when i delete the sysbuild.conf-File thus not implementing the DFU i suppose?)

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
EMPTY_0:
address: 0x164000
end_address: 0x165000
placement:
after:
- mcuboot_secondary
region: flash_primary
size: 0x1000
app:
address: 0x64600
end_address: 0xbc000
region: flash_primary
size: 0x57a00
mcuboot:
address: 0x0
end_address: 0xc000
placement:
align:
end: 0x1000
before:
- mcuboot_primary
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I understand that i need to define custom partitions taht are properly aligned to the CONFIG_NRF_TRUSTZONE_FLASH_REGION_SIZE wich defaults to 0x1000 (as it is in the KCONFIG file in the board definition).

Can you please point out to me what is wrong and how i define this correctly?

Maybe you also have resources on how to define a static partitioning-table for your diffrent board-targets as we are currently also in development for a project using the nrf52-Series wich will encounter similar problems i suppose.