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 agoAlright - I got something working, I just don't know what it means. I set the IDE up as follows:
.text - ext_SRAM .rodata - int_SRAM .rwdata - int_SRAM This should put the boot copier at the beginning of flash so that when the board powers up - the copier will copy the program to RAM from flash and run it from RAM. THIS WORKS! the code runs fine. What should the "Configuration:" setting be? Release or Debug? One thing I noticed. I can't run at all from SRAM with the IDE Configuration: set to the Release setting. hmmm why?