aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/stm32wba-dfu/memory.x
diff options
context:
space:
mode:
authorGerzain Mata <[email protected]>2025-07-29 01:19:22 -0700
committerGerzain Mata <[email protected]>2025-07-29 08:11:49 -0700
commit1b4ea556c0e99622a18c48126cfc6899ffa102b1 (patch)
tree158edb71711a270b00e634bbab55194cf35c4935 /examples/boot/bootloader/stm32wba-dfu/memory.x
parent7cf7f8b0ef344cdbef76703d4d700fbfddda23c9 (diff)
STM32WBA usb-dfu example
- Added sample application - Added sample bootloader Removed trace import
Diffstat (limited to 'examples/boot/bootloader/stm32wba-dfu/memory.x')
-rw-r--r--examples/boot/bootloader/stm32wba-dfu/memory.x18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/boot/bootloader/stm32wba-dfu/memory.x b/examples/boot/bootloader/stm32wba-dfu/memory.x
new file mode 100644
index 000000000..105c9e960
--- /dev/null
+++ b/examples/boot/bootloader/stm32wba-dfu/memory.x
@@ -0,0 +1,18 @@
1MEMORY
2{
3 /* NOTE 1 K = 1 KiBi = 1024 bytes */
4 FLASH : ORIGIN = 0x08000000, LENGTH = 80K
5 BOOTLOADER_STATE : ORIGIN = 0x08014000, LENGTH = 8K
6 ACTIVE : ORIGIN = 0x08016000, LENGTH = 120K
7 DFU : ORIGIN = 0x0803C000, LENGTH = 160K
8 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 400K
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); \ No newline at end of file