aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/rp/memory.x
blob: c19473114e78e179ac343cf0b3d3ee9ba4c56e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
MEMORY
{
  /* NOTE 1 K = 1 KiBi = 1024 bytes */
  BOOT2                             : ORIGIN = 0x10000000, LENGTH = 0x100
  BOOTLOADER_STATE                  : ORIGIN = 0x10006000, LENGTH = 4K
  FLASH                             : ORIGIN = 0x10007000, LENGTH = 512K
  DFU                               : ORIGIN = 0x10087000, LENGTH = 516K
  RAM                               : ORIGIN = 0x20000000, LENGTH = 256K
}

__bootloader_state_start = ORIGIN(BOOTLOADER_STATE) - ORIGIN(BOOT2);
__bootloader_state_end = ORIGIN(BOOTLOADER_STATE) + LENGTH(BOOTLOADER_STATE) - ORIGIN(BOOT2);

__bootloader_dfu_start = ORIGIN(DFU) - ORIGIN(BOOT2);
__bootloader_dfu_end = ORIGIN(DFU) + LENGTH(DFU) - ORIGIN(BOOT2);