Posted by James Savoy on 7/3/2002, 3:13 pm struct eeprom_layout { #pragma section eedefaults and defining the section as being part of the ROM with the linker. I don't know if it matters but the struct is much larger than I am showing here (256 bytes).
That was the first thing I tried, but I got the error "2136 (E) Type mismatch" when I did that. the only way I was able to get the struct into ROM was to add a section like so:
unsigned char uc1;
unsigned char uc2;
unsigned short checksum;
};
struct eeprom_layout gEEPROMDefaults = {
0,
80,
0xFFFF /* checksum */
};
#pragma section
Message Thread:
![]()
« Back to thread