Hi Alban,
I still have some problems. I tried to change my prm to this:
SECTIONS
ROM = READ_ONLY 0xF840 TO 0xFDFF;
Z_RAM = READ_WRITE 0x0080 TO 0x00FF;
InterruptVectors_ROM = READ_ONLY 0xFFDE TO 0xFFFF;
MyROM = READ_ONLY 0xF800 TO 0xF83F;
END
PLACEMENT
DEFAULT_RAM INTO Z_RAM;
DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM;
_DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM;
DATAFLASH INTO MyROM;
END
I couldn't name the zone DATA. With DATA I got a linker-error a sectionname would be expected. So I called the zone DATAFLASH.
But I receive an error during runtime:
Error: At location F83F -
Error: Attempt to use invalid or uninitialized memory
The code is:
unsigned char flashByte[64] @ 0xF800;
if ( flashByte[i] == 0xFF ) /* i=63 */
=> Translated in "LDX 63488,X", which produces the error.
If I point the array flashByte to the "ROM" area 0xF83F it works fine.( unsigned char flashByte[64] @ 0xF83F; ) But it doesnt work with my DATAFLASH address-space.
Thanks a lot.
Regrads,
Soror
Message Edited by Soror on 2006-08-10 03:08 AM
Message Edited by Soror on 2006-08-10 03:09 AM
Message Edited by Soror on 2006-08-10 03:10 AM
Message Edited by Soror on 2006-08-10 03:18 AM