boards: nrf5340: fix default flash partitioning
This commit fixes the default partitioning of flash in nrf5340 Application MCU, to comply with the nRF SPU region boundaries. To properly align the partition start addresses with SPU requirements we modify the start of the slot0 and slot1 partitions. This leaves some extra space available for MCUboot, whose size is now changed from 0xc000 to 0x10000. In addition, the non-secure partition size (slot0_nonsecure) is decreased, and as a consequence of that we also modify the board's .yaml file to reflect the new image size of the non-secure version of the board. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
d5c822d5c2
commit
620cf68c04
|
@ -128,18 +128,18 @@
|
|||
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x00000000 0x0000C000>;
|
||||
reg = <0x00000000 0x00010000>;
|
||||
};
|
||||
slot0_partition: partition@c000 {
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
};
|
||||
slot0_ns_partition: partition@3e000 {
|
||||
slot0_ns_partition: partition@50000 {
|
||||
label = "image-0-nonsecure";
|
||||
};
|
||||
slot1_partition: partition@7e000 {
|
||||
slot1_partition: partition@80000 {
|
||||
label = "image-1";
|
||||
};
|
||||
slot1_ns_partition: partition@b0000 {
|
||||
slot1_ns_partition: partition@c0000 {
|
||||
label = "image-1-nonsecure";
|
||||
};
|
||||
scratch_partition: partition@f0000 {
|
||||
|
|
|
@ -22,19 +22,19 @@
|
|||
*/
|
||||
|
||||
&slot0_partition {
|
||||
reg = <0x0000c000 0x30000>;
|
||||
reg = <0x00010000 0x40000>;
|
||||
};
|
||||
|
||||
&slot0_ns_partition {
|
||||
reg = <0x0003e000 0x40000>;
|
||||
reg = <0x00050000 0x30000>;
|
||||
};
|
||||
|
||||
&slot1_partition {
|
||||
reg = <0x0007e000 0x30000>;
|
||||
reg = <0x00080000 0x40000>;
|
||||
};
|
||||
|
||||
&slot1_ns_partition {
|
||||
reg = <0x000b0000 0x40000>;
|
||||
reg = <0x000c0000 0x30000>;
|
||||
};
|
||||
|
||||
/* Default SRAM planning when building for nRF5340 with
|
||||
|
|
|
@ -7,7 +7,7 @@ toolchain:
|
|||
- xtools
|
||||
- zephyr
|
||||
ram: 384
|
||||
flash: 256
|
||||
flash: 192
|
||||
supported:
|
||||
- i2c
|
||||
- pwm
|
||||
|
|
|
@ -7,7 +7,7 @@ toolchain:
|
|||
- xtools
|
||||
- zephyr
|
||||
ram: 384
|
||||
flash: 256
|
||||
flash: 192
|
||||
supported:
|
||||
- i2c
|
||||
- pwm
|
||||
|
|
Loading…
Reference in a new issue