I have a big problem with the compiler. It cannot point to the correct location. When I declared a pointer to a structure in EEPROM and try to access a member within it, the member pointed to is incorrect. Seems that it cannot add the offset address to the base address of the structure correctly especially when we are at the boundary of a sector/segment.
Has anyone encountered this? Any quick fix?
Eg,
struct A { char x; int y; }
A EEPROM* Var;
Var->y
Tack, mycket bra :)
Soon banned for off-topic posts though...
We use both spellings in Sweden.
By the way: in many forums it is often the natives who have the most spelling and grammar errors.
http://www.keil.com/support/docs/2663.htm
"The far data pointer type is only 16 bits long, so it can only 'see' 64k of space."
and
"There is no pointer type, in C51, that can see more than 64k of data space at a time."
But see the article for possible workarounds...