Altera_Forum
Honored Contributor
21 years agoCan't run code out of flash!
I am trying to run my Nios II code from flash with no success. I can run from the IDE, no problem when program memory is in RAM. I then change the build for flash. The flash programmer works fine - no errors. When I set the PC to base address of flash (using FS2's CLI) and issue the "GO" - nothing happens. I also tried to click the "RUN as Hardware" button in the IDE - same result. I also tried to boot from internal ROM and call my app in flash from a function pointer (recommended by "smcnutt") but it does nothing. In fact when I use the FS2's CLI, after I type GO I can't halt. I can initially step fine - but at some point it gets lost or something????
any suggesstions? I don't know if it's related but when I load my code built for RAM - into RAM, and then set the PC mannually from FS2's CLI and type GO - same result, nothing happens...