Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

problem running updated firmware

I have a nios system with a usb port that can receive comands and also a new firmware. I wrote a assembly code that receive, check and put the new firmware in the correct position at memory. After that its jump to the entry point and the new firmware starts. This works well when I m using the command run o debug through the ide, but when the system is standalone (boot from epcs) it receive the comands or firmware but doesn't run the new firmware. I can't know what is wrong, because when I try to debug it works well.

Does anyone know what can be wrong?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    something interesting: in a nios without data cache works well, the problem is when has data cache. I ve just tried to flush data and instruction cache but dont work yet.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    fixed!! I was copying a piece of code to another place before transfer start the loading of the new firmware. So I needed to flush te data cache before jump to that piece of code.