Forum Discussion
Altera_Forum
Honored Contributor
15 years agoBeen working on this again all day today. I created a 16k onchip RAM and set the non-default initialization file to nios.hex. I set the Nios cpu reset location to this onchip ram.
In the NIOS EDS I compiled a very simple program that uses IOWR_ALTERA_AVALON_PIO_DATA() to write to an output PIO that I also have set up in SOPC builder. After compiling the program I run the mem_init_install target to create nios.hex. Then I rebuild the project in Quartus and according to the Fitter RAM Summary the nios.hex file is being included. Then I program my Cyclone II in active serial mode using the Quartus Programmer. None of my PIO output pins will change value like they are supposed to from the NIOS program. Is there an extra step that I am not doing? I haven't been able to find any documentation on this method whatsoever except for a few vague forum posts that don't mention anything that I haven't already done.