summaryrefslogtreecommitdiff
path: root/examples/boot/nrf/memory.x
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@redhat.com>2022-04-20 13:49:59 +0200
committerUlf Lilleengen <ulf.lilleengen@gmail.com>2022-04-27 15:17:18 +0200
commit484e0acc638c27366e19275c32db9c8487ea8fba (patch)
tree5649591dad34cadcb28503f94c1bbca0bf5578a1 /examples/boot/nrf/memory.x
parent9c283cd44504d6d9d6f9e352e4c7a8d043bd673f (diff)
downloadembassy-484e0acc638c27366e19275c32db9c8487ea8fba.zip
Add stm32 flash + bootloader support
* Add flash drivers for L0, L1, L4, WB and WL. Not tested for WB, but should be similar to WL. * Add embassy-boot-stm32 for bootloading on STM32. * Add flash examples and bootloader examples * Update stm32-data
Diffstat (limited to 'examples/boot/nrf/memory.x')
-rw-r--r--examples/boot/nrf/memory.x14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/boot/nrf/memory.x b/examples/boot/nrf/memory.x
new file mode 100644
index 00000000..dfb72103
--- /dev/null
+++ b/examples/boot/nrf/memory.x
@@ -0,0 +1,14 @@
+MEMORY
+{
+ /* NOTE 1 K = 1 KiBi = 1024 bytes */
+ BOOTLOADER_STATE : ORIGIN = 0x00006000, LENGTH = 4K
+ FLASH : ORIGIN = 0x00007000, LENGTH = 64K
+ DFU : ORIGIN = 0x00017000, LENGTH = 68K
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
+}
+
+__bootloader_state_start = ORIGIN(BOOTLOADER_STATE);
+__bootloader_state_end = ORIGIN(BOOTLOADER_STATE) + LENGTH(BOOTLOADER_STATE);
+
+__bootloader_dfu_start = ORIGIN(DFU);
+__bootloader_dfu_end = ORIGIN(DFU) + LENGTH(DFU);