I understand how to change an sof file to a jic, so that it can automatically run the code when the DE0-Nano gets turned on.My question is how do i make my program run automatically when after i unplug and plug the board back in. Without having to Press run As NIOS II hardware?
With the JIC-File (JTAG Indirect Configuration) you can only program your FPGA Configuration File.If you turn the power off and on again, the FPGA will only be configured. If you want to flash your Software ELF-File from your Nios project you have to use the Nios II Flash programmer. Start the Nios II Eclipse Software, open your project and then under the Nios II Tab, start the Flash programmer. Under File -> New..., you can configure a new Nios II Flash Programmer Setting File. If you have a SOPC Info File and an ELF-File you can start the programmer. After programming, the Programm will start running after you unplug and plug your board again.
specification of DE0-nano board.it has EPCS16. you can contain your NiosII program in EPCS as well. you can contain both QuartusII sof(jic) image and elf image in same EPCS. by the way DE0-nano also contains "2Kb I2C EEPROM" you should not have problem.
Thanks Akira.I now have some lead on what i need to do. I'm sure i'll figure it out. If i do, i'll try to make a small write up and post it for others. - Pratish
Hi,it is correct, that you can store both jic and elf into your epcs device. But make sure that your SOPC System contains the EPCS Serial Flash Controller IP. Select the EPCS Controller for the Reset Vector in your Nios II CPU and make sure that the Flash Offset for the SOF file is set to 0 Now you can flash your sof and elf file at the same time with the flash programmer in the Nios II Eclipse.
--- Quote Start --- Hi, it is correct, that you can store both jic and elf into your epcs device. But make sure that your SOPC System contains the EPCS Serial Flash Controller IP. Select the EPCS Controller for the Reset Vector in your Nios II CPU and make sure that the Flash Offset for the SOF file is set to 0 Now you can flash your sof and elf file at the same time with the flash programmer in the Nios II Eclipse. --- Quote End --- Dear nicolas, I was programed the DE0-nano with the Eclipse, the .elf & .sof, like you put in the picture example. but when I make the disconnect and reconnect of the NANO doesnt work the program.. you can tell me why? thanks Best regards I attach a picture of HDL and Flash programmer https://sites.google.com/site/adrizviewer/home/imagen.png https://sites.google.com/site/adrizviewer/home/flash.png https://sites.google.com/site/adrizviewer/home/hdl.png https://sites.google.com/site/adrizviewer/home/hdl2.png
I has the same question. After i use flash programmer to download elf+sof, I reboot de0-nano, but my nios software does not run as expected.So what's wrong? Are there bugs with flash programmer for civ? BTW, the jic can boot OK.
I have A de0 NANO TOO and i am able to download jic rigth but when i try to use de flash programer(sof+elf) it dont work ..The error in the flash programer is: can't find the epcs! and show me the adresses in wich are looking..And the adresses are good i comprae with tne qsys... This is wear becouse de jic works fine ......so the epcs have no problem... I have the epcs controller on my qsys i am using regular i/o in the toplevel entity..i put the reset vector to the epcs controller in the cpu.. i dont`t know what to do ... Maybe this is relevant ... i find out that the epcs from my DEo nano is epcs64 not the epcs16 that appears in the usermanual...