Difference between revisions of "SAMD Flash Overview"

From KONNEKTING Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
|0x02000-0x05FFF
 
|0x02000-0x05FFF
 
|0x3FFF (16k)
 
|0x3FFF (16k)
|2nd stage update bootloader, last 8 bytes (0x05FF8-0x05FFF) Bootloader EEPROM
+
|2nd stage update bootloader, last 256 bytes (0x05EFF-0x05FFF) Bootloader EEPROM
 
|-
 
|-
 
|0x06000-0x3DFFF
 
|0x06000-0x3DFFF
Line 38: Line 38:
 
|0x02000-0x05FFF
 
|0x02000-0x05FFF
 
|0x3FFF (16k)
 
|0x3FFF (16k)
|2nd stage update bootloader, last 8 bytes (0x05FF8-0x05FFF) Bootloader EEPROM
+
|2nd stage update bootloader, last 256 bytes (0x05EFF-0x05FFF) Bootloader EEPROM
 
|-
 
|-
 
|0x06000-0x21FFF
 
|0x06000-0x21FFF
Line 52: Line 52:
 
|8k virtual "flash EEPROM"
 
|8k virtual "flash EEPROM"
 
|}
 
|}
 +
 +
 +
Some additional information:
 +
SAMD21G18A has 256 KByte FLASH
 +
Page size is 64 Byte
 +
Row has 4 pages.
 +
Before a page can be written, the row that contains the page must be erased.
 +
 +
=> the minimum writeble amount of data is 256 bytes (1 Row/4 Pages)

Revision as of 08:11, 12 March 2018

Applicable for SAMD21x18 with 256k FLASH

EFU - External Flash Update

address size Description
0x00000-0x01FFF 0x2000 (8k) Arduino Bootloader
0x02000-0x05FFF 0x3FFF (16k) 2nd stage update bootloader, last 256 bytes (0x05EFF-0x05FFF) Bootloader EEPROM
0x06000-0x3DFFF 0x38000 (224k) Sketch
0x3E000-0x3FFFF 0x2000 (8k) 8k virtual "flash EEPROM"


IFU - Internal Flash Update

address size Description
0x00000-0x01FFF 0x2000 (8k) Arduino Bootloader
0x02000-0x05FFF 0x3FFF (16k) 2nd stage update bootloader, last 256 bytes (0x05EFF-0x05FFF) Bootloader EEPROM
0x06000-0x21FFF 0x1C000 (112k) Sketch
0x22000-0x3DFFF 0x1C000 (112k) Update
0x3E000-0x3FFFF 0x2000 (8k) 8k virtual "flash EEPROM"


Some additional information: SAMD21G18A has 256 KByte FLASH Page size is 64 Byte Row has 4 pages. Before a page can be written, the row that contains the page must be erased.

=> the minimum writeble amount of data is 256 bytes (1 Row/4 Pages)