Eventually what I am trying to do is to have my MCU keep an error log in eeprom,
In the past I have accomplished this by defining an array in eeprom. I kept track of the location of the next free space by writing 0xff to the next available spot. Every time my mcu would reset, one of the first thing it would do in the initialization is to poll every element in the eeprom until it got to a 0xff. Then it would store the element number of this location into a SRAM variable.
I thought it might be a little cleaner if I tried to put the eeprom array and the element number in a struct.
Here is my declaration:
struct ee_log_t { uint8_t index; uint8_t EEMEM list[256]; } reset_log, error_log;
I get a compiler error:
Terminal.h:4: error: section attribute not allowed for 'list'
Did I get the syntax wrong or is this simply not allowed?