Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

How to Download ELF file with using command promat

Altera_Forum
Honored Contributor II
1,866 Views

Hi, 

 

I am using QII v11.0 with Eclips only(Not installing lagancy) on my machine. 

 

My question is have you guys every try to download ELF/FLASH file using .BAT files?(i.e using command like "nios2-download") 

 

I have tried but its given an error that "nios2-download cmd not found" so any one have an idea about how we can create quick demo using such above command for downloading SOF/JIC/POF and ELF/FLASH files on hardware without runing STB(Eclipse project). 

 

Note:- If install legancy for NIOSII IDE then its work fine but i don't want to install it because i am using Eclipse SBT. 

 

Thank In Advance 

dg
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
211 Views

Use NiosII command shell, then do there nios2-download -g file.elf. 

 

Contents of NiosII command shell executable should be somewhere around here: 

X:\altera\10.1\nios2eds\Nios II Command Shell.bat
Altera_Forum
Honored Contributor II
211 Views

I recommend passing in the reset command as well. i.e. nios2-download -r -g <elf_file.elf> 

 

If you want to open a terminal connection it is nios2-terminal. 

 

Both of these commands have cable options as well in case you have multiple programming cables. Use the --help to find out more about the syntax in those cases.
Altera_Forum
Honored Contributor II
211 Views

On Windows 7 I use the following two commands in the command prompt: 

 

<Quartus II Path>\bin\nios2-elf-objcopy <My Application Path>\<My Application name>.elf -O srec <My Application Path>\<My Application name>.srec <Nios 2 EDS Path>\bin\nios2-gdb-server --cable="Usb-blaster " <My Application Path>\<My Application name>.srec --go  

 

Thomas.
Reply