Hi,
I am writing my 1st program using PlatformIO. This for an Arduino environment and as target an ATMEGA328P.
I’d like to specify (define) code in my source that is intended to go to EEPROM (initial values in the internal ATMEGA328’s EEPROM)
I use 2 sorts of code to generate EEPROM data :
__attribute__((section(".eeprom"))) uint8_t eepContent[6] = {0,1,0xFF,3,4,5};
or
static const uint16_t shutter1[] EEMEM = {
// header
0x8060, 0x0018,
// data
0x8030, 0x0018, 0x8018, 0x0018, 0x8030, 0x0018, 0x8030, 0x0018, // B
0x8018, 0x0018, 0x8030, 0x0018, 0x8018, 0x0018, 0x8018, 0x0018, // 4
0x8030, 0x0018, 0x8018, 0x0018, 0x8030, 0x0018, 0x8030, 0x0018, // B
0x8030, 0x0018, 0x8018, 0x0018, 0x8018, 0x0018, 0x8018, 0x0018, // 8
0x8030, 0x0018, 0x8030, 0x0018, 0x8030, 0x0018, 0x8030, 0x01c8, // F
0x0000,
};
I do see an .EEP being generated but its empty (only the intel hex close record).
How can I adapt my source that some of the data will be moved to EEPROM and to the .EEP file ?
Thanks in advance,
Bram