diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-07-29 16:41:15 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-29 16:41:15 +0000 |
| commit | e145a653cf9d31f101b0735406b8b7c9208bc1da (patch) | |
| tree | e07557cd541a11b514f07ee64ae9fc334117b18d /examples/boot/bootloader/stm32wba-dfu/memory.x | |
| parent | b67c2e06d50479e7d68d4d1198e0a8a0193936a9 (diff) | |
| parent | 1b4ea556c0e99622a18c48126cfc6899ffa102b1 (diff) | |
Merge pull request #4478 from leftger/example/stm32wba-usb-dfu
STM32WBA usb-dfu example
Diffstat (limited to 'examples/boot/bootloader/stm32wba-dfu/memory.x')
| -rw-r--r-- | examples/boot/bootloader/stm32wba-dfu/memory.x | 18 |
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 @@ | |||
| 1 | MEMORY | ||
| 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 | ||
