I am interested in storing a set of variables in eeprom. It is important in what order these are stored since I will have both a bootloader and an application using these. In CodeVision I have seen something like this to make sure the variables are stored at memory location 0x001 :
eeprom unsigned char A=0x01;
eeprom unsigned char B=0x02;
This however assumes that the compiler always store the variables in the same order, which is not necessary the case. Can someone please help me out here with suggestions on how to solve this problem in crossworks.
Please sign in to leave a comment.