cancel
Showing results for 
Search instead for 
Did you mean: 

Finish Thread

gavin1
Associate II
Posted on July 17, 2007 at 14:25

Finish Thread

1 REPLY 1
gavin1
Associate II
Posted on July 17, 2007 at 14:25

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?