Hi,
I'm looking for a variant of memcpy which uses the ELPM instruction
(as I understand it, memcpy_P uses LPM which doesn't work for me).
I'd also like to find a way of getting the long address of a symbol
located in "high" flash.
Doing:
uint32_t addr = (uint32_t)&flashVar;
seems to give a sign-extended version of the lower 15 bits of the
address. This works for the upper and lower 32K on the ATMega128, but
not for stuff in the middle.
--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/