Hi Guys,
Thanks for all replies. Sorry for delay in my response. I didn't have the opportunity to work on this problem, but I do now.
I simply remapped the PRM file,
From
RAM_0800 = READ_WRITE 0x00000800 TO 0x00003FFF;
EEPROM_0400 = READ_WRITE 0x00000400 TO 0x000007FF;
to
RAM_0800 = READ_WRITE 0x00000CF1 TO 0x00003FFF;
EEPROM_0400 = READ_WRITE 0x00000400 TO 0x00000CF0;
and I am using such type of data:
#pragma DATA_SEG EEPROM
static byte offset[100][20];
#pragma DATA_SEG DEFAULT
It generally works fine, but I've got some small issue.
When I store the data (one after another) :
for x...
for y...
result = IEE1_SetByte( (word) &offset[x][y], (byte)(data) );
The data are being stored correctly until the it reaches the address 0x800 (where RAM used to start). When I store byte in 0x800, it erases 2 bytes on 0x7FC and 0x7FD. Any ideas what happens here and why ?
I will have to do more tests to check if it erases only one word (two bytes) or more.
Thanks for suggestions
Jakub