FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5892 Discussions

DE0-Nano NIOS II Question

Altera_Forum
Honored Contributor II
2,902 Views

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?
0 Kudos
13 Replies
Altera_Forum
Honored Contributor II
542 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

Hi nicolas,  

if i read the specifications of the DE0-Nano right, this board does not have a flash memory!
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

I don't have much time to write instruction. 

just try Flash Programmer in NiosII IDE ( or Eclipse ) 

 

good luck.
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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! 

 

:)
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

In DE2-115 there is a switch that allow you to choose running the FPGA from EPCS controller. I am not sure if DE0-nano has the same

0 Kudos
Altera_Forum
Honored Contributor II
542 Views

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...
0 Kudos
Altera_Forum
Honored Contributor II
542 Views

I connect the reset of the debug_module in the cpu to the reset of the epcs_controller in QSYS and it works...

0 Kudos
Reply