ATSAMD21J18A memory map

Where everything sits, at its exact address. The ATSAMD21J18A has one 32-bit address space that its Arm Cortex-M0+ core reaches flash, SRAM and the peripherals through alike: flash at 0x00000000, SRAM at 0x20000000, the peripherals from 0x40000000 and the core's own system registers (SysTick, the NVIC) at 0xE000E000.

Memory map

Flash, SRAM and the peripheral buses in the one 32-bit space (the calibration and user rows are listed below).

System control space (SysTick, NVIC)0xE000E000 – 0xE000EFFF4 KB
Peripheral bridge C (HPB2)0x42000000 – 0x4200FFFF64 KB
Peripheral bridge B (HPB1)0x41000000 – 0x4100FFFF64 KB
Peripheral bridge A (HPB0)0x40000000 – 0x4000FFFF64 KB
SRAM0x20000000 – 0x20007FFF32 KB
Flash0x00000000 – 0x0003FFFF256 KB

Every segment

SegmentSpaceStartEndSizePage
Private peripheral busbase0xE00000000xE00FFFFF1 MB
System control space (SysTick, NVIC)base0xE000E0000xE000EFFF4 KB
Flashbase0x000000000x0003FFFF256 KB64 B
CALbase0x008000000x008000078 B
LOCKBITbase0x008020000x008020034 B
USER PAGEbase0x008040000x008040FF256 B64 B
OTP1base0x008060000x008060078 B
OTP2base0x008060080x0080600F8 B
OTP4base0x008060200x008060FF224 B64 B
TEMP LOGbase0x008060300x008060378 B
AUX3base0x0080A0000x0080A0FF256 B64 B
SRAMbase0x200000000x20007FFF32 KB
Peripheral bridge A (HPB0)base0x400000000x4000FFFF64 KB
PERIPHERALSbase0x400000000x5FFFFFFF512 MB
Peripheral bridge B (HPB1)base0x410000000x4100FFFF64 KB
Peripheral bridge C (HPB2)base0x420000000x4200FFFF64 KB