Forum Discussion
Altera_Forum
Honored Contributor
9 years agoIf your nios application works as expected if you program it into the FPGA to run immediately, but not when you boot it from EPCS, you are most likely not setting the boot vector right. (for the flash variant)
For boot from flash you need to set the boot vector to the flash device. Reason: Your NIOS "logic part" gets loaded from flash first and when it gets clocked and out of reset, the software needs to start somewhere. If if boots from onchip_mem (most likely initialized to 0x0), then your application is not loaded. If it boots from flash, Quartus puts per default a bootload in there, which loads your application and then runs it. Hint for boot check: Use two LEDs: one that is entirely blinking because of VHDL code (or Verilog, ...) and one because of NIOS.