Looks like nios2-download -g myprogram.elf , every time execute the old binary and not the new program.
Symtoms are same, even if i used the NIOS-Eclipse tool
Using NIOS-Eclipse tool try to clean and build the project and check it.
Can you share the project and information about the tools and device used?
Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Anand Raj Shankar
(This message was posted on behalf of Intel Corporation)
This is totally up normal to have the elf not up to date. which version you are using?.
I Can solve your issue if I have screen-shoots of it and the error message (if you have).