Forum Discussion
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 ...
Altera_Forum
Honored Contributor
21 years agoSilly question but how exactly are you specifying that your program be located in flash? The system library properties dialog in the IDE allows you to select memory devices for several things - .text, .rodata, .rwdata, etc. Obviously .text (code) and .rodata (read only data) can be in flash, but anything that requires the CPU to write/modify data (.rwdata and stack) must be in a RAM of some sort.