Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI finally got this project to work. The offset for the image on the starter board is 0x0020000. By programming the flash using a .pof file in programmer, and then using the FlashProgrammer in the NIOS SBT to program the .elf and start the processor, the thing works. For some reason I can't get it to work with just the flash programmer or the Quartus programmer alone.
The Quartus programmer seems to leave the processor paused at reset, and manually resetting it with the button doesn't seem to have any effect unless the processor is already running. If just the NIOS SBT flash programmer is used, the FPGA is not reconfigured on power up. At least it works. Note: I didn't find this info anywhere online until today, but if you have the NIOS programs saved in ROM somewhere to be loaded at boot (and not initialized to on-chip memory with a .hex file) the memory where the .text section is being run from must also be connected to the NIOS data master and not just the instruction master. I couldn't figure out why my program would work if I omitted the flash and just ran from on-chip memory, but did not work when I tried to boot it from flash. Evidently the boot copier will use the data bus to copy the needed files into RAM to be run. Just thought I'd post that in case anyone ran into the same issue somewhere.