summaryrefslogtreecommitdiff
path: root/nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml
diff options
context:
space:
mode:
authorMichal Hanus <mikehanus@protonmail.com>2025-04-14 22:04:32 +0200
committerMichal Hanus <mikehanus@protonmail.com>2025-04-14 22:04:32 +0200
commit2e13c372f1419f08dab7797b244681f889dd9bcf (patch)
tree995a31c40f13068c4135c213e938e0a2a9ed05a3 /nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml
parent620dfd94019f3c7e3022fa5a5fb9c9b51491062d (diff)
nrfdemo
Diffstat (limited to 'nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml')
-rw-r--r--nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml b/nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml
new file mode 100644
index 0000000..7d26fac
--- /dev/null
+++ b/nrfdemo/build/mcuboot/zephyr/include/generated/pm.yml
@@ -0,0 +1,27 @@
+mcuboot:
+ size: 0xc000
+ placement:
+ before: [mcuboot_primary]
+mcuboot_primary_app:
+ # All images to be placed in MCUboot's slot 0 should be placed in this
+ # partition
+ span: [app]
+mcuboot_primary:
+ span: [mcuboot_pad, mcuboot_primary_app]
+# Partition for secondary slot is not created if building in single application
+# slot configuration.
+mcuboot_secondary:
+ share_size: [mcuboot_primary]
+ placement:
+ align: {start: 0x8000}
+ align_next: 0x8000 # Ensure that the next partition does not interfere with this image
+ after: mcuboot_primary
+# Padding placed before image to boot. This reserves space for the MCUboot image header
+# and it ensures that the boot image gets linked with the correct address offset in flash.
+mcuboot_pad:
+ # MCUboot pad must be placed before the primary application partition.
+ # The primary application partition includes the secure firmware if present.
+ size: 0x200
+ placement:
+ before: [mcuboot_primary_app]
+ align: {start: 0x8000}