Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNios systems - programing EPCS
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'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 ?2 Replies
- Altera_Forum
Honored Contributor
Hi Alexs,
Good explanation in Nios2 flash programmer guide. -Baycool - Altera_Forum
Honored Contributor
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