Forum Discussion
Altera_Forum
Honored Contributor
15 years agoDE0-Nano NIOS II Question
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?13 Replies
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
Hi nicolas,
if i read the specifications of the DE0-Nano right, this board does not have a flash memory! - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
Thanks alot of quick reply.
Any instructions on how to program both jic and elf in same EPCS? Or instructions on programming them on the EEPROM? - Pratish - Altera_Forum
Honored Contributor
I don't have much time to write instruction.
just try Flash Programmer in NiosII IDE ( or Eclipse ) good luck. - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
Thanks again!!!
Finals are going on this week, i'll try this next week. Thanks for help... if i run into problems, i know where to come back! :) - Altera_Forum
Honored Contributor
--- 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 - Altera_Forum
Honored Contributor
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.