Adjusting the linker for use of the EEPROM on SAM M0 devices
There’s an interesting “thought” left out of application notes and driver when it comes to using the “EEPROM” on a SAM Cortex M0 device like the SAMD21 or SAMD20.
You have to modify the linker to keep your program safe!
What do I mean?
Flash Organization The basic flash memory is like this (using 256kb flash as an example):
|-------------- 0x00000 | | | | FLASH | | | | |-------------- 0x40000 However “EEPROM” uses flash space from the bottom up!
Read more