Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

Nios systems - programing EPCS

Altera_Forum
Honored Contributor II
1,116 Views

Hello experts  

 

I have build nios2 board and it work just fine - no problem with it.  

But in software tools to many problems  

 

So we are using command line to compile and download SW code to EPCS but  

we don&#39;t understand how to download HW code to EPCS from command line http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

Can you explain or just show command line how to download HW+SW into EPCS ?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
385 Views

Hi Alexs, 

 

Good explanation in Nios2 flash programmer guide. 

 

-Baycool
0 Kudos
Altera_Forum
Honored Contributor II
385 Views

Hi AlexS, 

 

> Can you explain or just show command line how to download HW+SW into EPCS ? 

 

for your sw elf file (sw.elf): 

 

$ elf2flash --epcs --base=0x0 --end=0x7fffffff --input=sw.elf --output=sw.flash 

$ nios2-flash-programmer --epcs --input=sw.flash --sof=<PGM> 

 

for your hw sof file (hw.sof): 

 

$ sof2flash --epcs --input=hw.sof --offset=0x0 --output=hw.flash 

$ nios2-flash-programmer --epcs --input=hw.flash --relocate --sof=<PGM> 

 

The <PGM> is the sof file for your flash programmer design. 

 

Regards, 

--Scott
0 Kudos
Reply