This question is in relation to a thread that AlanK2 and I have been exchanging having to do with an ELPM instruction "apparently" loading a byte from an incorrect location.
Please see middle of thread starting here:
When stepping through the assembler it appears that the RAMPZ and Z registers are correctly loaded but the wrong byte value is loaded into R24 after prog space address 2137 (0x0859). (the offending statement is in a loop going through code space from 0 to end-of-text to do a CRC calculation).
I do not have in-depth knowledge of AVR assembler so there is probably something I don't understand about ELPM and therefore am not checking.
Thanks in advance ...