I was in need of an special EEPROM section, and coded
my own by writing
#define SYS_DATA __attribute__ ((section (".eep_sys_sec")))
and then instructed the linker to do
expecting that, when declaring
uint8_t test_var SYS_DATA = 4;
see the value 0x04 in eeprom address 0x0f70
But I can't see it, in fact, I've declared other variables that I need in the EEPROM (by the EEMEM attribute) and they appear at their intended addresses. (starting from zero)
But not "test_var"
I searched for examples on creating sections and relocating sections, and found this solution, which works for the .text area, but I think I'm missing something here. What I expect is to overlap my area inside the .eeprom area and use it to storage some parameters that doesn't change frequently.
Thanks in advance