2007-07-17 05:25 AM
2007-07-17 05:25 AM
Apologees but I'd like to finish up a few things on this thread.
I'm trying to use the Cosmic compiler to read and write to EEPROM on a ST7FLITE39. I'm using ST7VD to develop my code. I have added eeprom.s and eeprom.i to my project. I declare my variables as e.g. @near @eeprom unsigned char myVar = 0; Then I disable automatic linker file generation in Project Settings > Linker > Input. Then I add line to my linker file +seg .eeprom -b 0x1000 -m 0x20 And in my code I set myVar: myVar = 1; When I attempt to load this in ST7VP I receive : Address 0x1000 is out of range and is ignored! If I ignore this and program I can program the Program memory. On running the application I expect to see 0x01 in Data Memory location 0x1000 when I read the Data Memory tab from the IC using ST7VP. This is not the case. My remaining questions are: Should I receive the address out of range error? Are there any further modifications required for the eeprom code to work?