aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/stm32wb-dfu/memory.x
diff options
context:
space:
mode:
authorKaitlyn Kenwell <[email protected]>2023-12-14 09:36:22 -0500
committerKaitlyn Kenwell <[email protected]>2023-12-14 09:36:22 -0500
commite27e00f6280683293f427d0731aa69ca32dbbe60 (patch)
treee238a3ed8fda1b7c89c27864b62d387786e75925 /examples/boot/bootloader/stm32wb-dfu/memory.x
parentb60b3f4eb8f22ecda1c30d63213010f1b6b47686 (diff)
Address reviews
Diffstat (limited to 'examples/boot/bootloader/stm32wb-dfu/memory.x')
-rw-r--r--examples/boot/bootloader/stm32wb-dfu/memory.x18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/boot/bootloader/stm32wb-dfu/memory.x b/examples/boot/bootloader/stm32wb-dfu/memory.x
new file mode 100644
index 000000000..b6f185ef7
--- /dev/null
+++ b/examples/boot/bootloader/stm32wb-dfu/memory.x
@@ -0,0 +1,18 @@
1MEMORY
2{
3 /* NOTE 1 K = 1 KiBi = 1024 bytes */
4 FLASH : ORIGIN = 0x08000000, LENGTH = 24K
5 BOOTLOADER_STATE : ORIGIN = 0x08006000, LENGTH = 4K
6 ACTIVE : ORIGIN = 0x08008000, LENGTH = 32K
7 DFU : ORIGIN = 0x08010000, LENGTH = 36K
8 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
9}
10
11__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(FLASH);
12__bootloader_state_end = ORIGIN(BOOTLOADER_STATE) + LENGTH(BOOTLOADER_STATE) - ORIGIN(FLASH);
13
14__bootloader_active_start = ORIGIN(ACTIVE) - ORIGIN(FLASH);
15__bootloader_active_end = ORIGIN(ACTIVE) + LENGTH(ACTIVE) - ORIGIN(FLASH);
16
17__bootloader_dfu_start = ORIGIN(DFU) - ORIGIN(FLASH);
18__bootloader_dfu_end = ORIGIN(DFU) + LENGTH(DFU) - ORIGIN(FLASH);