Hi all!
A question to all who uses IAR EWAVR. I have DataFlash chip attached to mega128. Does anybody know, how to declare variables in DataFlash? Of course I don't mean "full-featured" variables with full access thru identifier. I need only to declare them in order to give each variable its own address. But the only way I see is like this:
#define var1adr 0x0000
#define var1length 2
#define var2adr var1adr+var1length
and so on; and to use __hugeflash 3-byte pointer to that "variables".
I tried to use __huge keyword before var identifier, but unsuccessfully.
Is there another, easier way to do this?