Altera_Forum
Honored Contributor
21 years agoNIOSII Flash Programmer
Hi everyone,
I'm trying to build a small demo application (like helo_world) that runs automatically after board reset. I'm using the Nios development Kit Cyclone Edition. I have already stored my FPGA-configuration in the user-area of the onboard flash at address 0x600000. After reset, this configurations is loaded. Some LEDs indicate that really my design is configured. Now i can download my small programm via the RUN...-command from NIOSII IDE and it also works fine. In the next step I want to store it in flash too, so that it's executed after reset. I use the flash-programmer again. All messages say: everything works, but after reset nothing happens. Does anyone have some suggestions, what I can do? Thera are also some inconsistencies in the messages during compilation. Please take a look at the following: # Creating .flash file for the FPGA configuration $SOPC_KIT_NIOS2/bin/sof2flash --flash=U5 --offset=0x600000 --input=G:/Testprojek t2/mpsoc.sof --output=mpsoc.flash Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert G:/Testprojekt2/mpsoc.sof mpsoc .rbf Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Thu Mar 03 13:17:53 2005 Info: Elapsed time: 00:00:01 # Programming flash with the FPGA configuration $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=mpsoc.flash --sof=$SOPC_KIT_N IOS2/components/altera_nios_dev_board_cyclone_1c20/system/altera_nios_dev_board_ cyclone_1c20.sof --base=0x00800000 My question is, what role does the altera_nios_dev_board_cyclone_1c20.sof file play? My designs is named mpsoc.sof! Why is the base-option set to 0x00800000 at the second step? That address is defined as the base-address of the sram device integrated in the system!