Physical Memory Map

The High-Speed bus is implemented as a bus matrix. All High-Speed bus addresses are fixed, and they are never remapped in any way, even during boot. The 32-bit physical address space is mapped as follow:

Table 1. SAM D21 physical memory map(1)
Memory Start address Size
SAMD21x18 SAMD21x17 SAMD21x16 SAMD21x15
Internal Flash 0x00000000 256Kbytes 128Kbytes 64Kbytes 32Kbytes
Internal RWW section(2) 0x00400000 - - 2Kbytes 1Kbytes
Internal SRAM 0x20000000 32Kbytes 16Kbytes 8Kbytes 4Kbytes
Peripheral Bridge A 0x40000000 64Kbytes 64Kbytes 64Kbytes 64Kbytes
Peripheral Bridge B 0x41000000 64Kbytes 64Kbytes 64Kbytes 64Kbytes
Peripheral Bridge C 0x42000000 64Kbytes 64Kbytes 64Kbytes 64Kbytes

1. x = G, J or E.

2. Only applicable for Device Variant B.

Table 2. Flash memory parameters(1)
Device Flash size Number of pages Page size
SAMD21x18 256Kbytes 4096 64 bytes
SAMD21x17 128Kbytes 2046 64 bytes
SAMD21x16 64Kbytes 1024 64 bytes
SAMD21x15 32Kbytes 512 64 bytes

1. x = G, J or E.

2. The number of pages (NVMP) and page size (PSZ) can be read from the NVM Pages and Page Size bits in the NVM Parameter register in the NVMCTRL (PARAM.NVMP and PARAM.PSZ, respectively). Refer to NVM Parameter (PARAM) register for details.

Table 3. RWW section parameters
Device Flash size Number of pages Page size
SAMD21x16B 2Kbytes 32 64 bytes
SAMD21x15B 1Kbytes 16 64 bytes