diff options
| author | Ulf Lilleengen <[email protected]> | 2022-12-01 18:26:22 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-12-02 11:28:33 +0100 |
| commit | bb89a2341cca1aad79bc6d5f3532008541c9e428 (patch) | |
| tree | 63ff838ef0192f492ac2aae59b0b8a445b8200d6 /examples/boot/application/rp/memory.x | |
| parent | eb010fbe33c2b99bdeaa68a2045b8a8e220cf0aa (diff) | |
feat: embassy-boot for rp2040
Add embassy-boot support for RP2040, with examples for the Raspberry Pi
Pico.
Co-authored-by: Mathias Koch <[email protected]>
Diffstat (limited to 'examples/boot/application/rp/memory.x')
| -rw-r--r-- | examples/boot/application/rp/memory.x | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/boot/application/rp/memory.x b/examples/boot/application/rp/memory.x new file mode 100644 index 000000000..c19473114 --- /dev/null +++ b/examples/boot/application/rp/memory.x | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | MEMORY | ||
| 2 | { | ||
| 3 | /* NOTE 1 K = 1 KiBi = 1024 bytes */ | ||
| 4 | BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100 | ||
| 5 | BOOTLOADER_STATE : ORIGIN = 0x10006000, LENGTH = 4K | ||
| 6 | FLASH : ORIGIN = 0x10007000, LENGTH = 512K | ||
| 7 | DFU : ORIGIN = 0x10087000, LENGTH = 516K | ||
| 8 | RAM : ORIGIN = 0x20000000, LENGTH = 256K | ||
| 9 | } | ||
| 10 | |||
| 11 | __bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOT2); | ||
| 12 | __bootloader_state_end = ORIGIN(BOOTLOADER_STATE) + LENGTH(BOOTLOADER_STATE) - ORIGIN(BOOT2); | ||
| 13 | |||
| 14 | __bootloader_dfu_start = ORIGIN(DFU) - ORIGIN(BOOT2); | ||
| 15 | __bootloader_dfu_end = ORIGIN(DFU) + LENGTH(DFU) - ORIGIN(BOOT2); | ||
