Hi,
I'm rewriting a project I originally had running on a ATMega 644.
Now I need more space, so an ATMega 1284 is my choice.
I need to have a very large amount of constant data in flash (more than
fits under the 64k address range).
My problem is that I must get the address of some constants in high
(above 0x10000) memory and here the 'address of' a char[] does not
return the right value.
Example:
I have string constant 'mystring' at address 0x11808 (can see it in the
.map and .lst files). Using 'print_func(mystring);', which should print
this address, albeit truncated to 16bits, returns '0x1e57'. I cannot see
a connection here.
Anyone tried to do similar things?
Regards,
Bob von Knobloch