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++
12603 Discussions

How to Download ELF file with using command promat

Altera_Forum
Honored Contributor II
2,526 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
871 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
0 Kudos
Altera_Forum
Honored Contributor II
871 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.
0 Kudos
Altera_Forum
Honored Contributor II
871 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.
0 Kudos
Reply