Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHow to Download ELF file with using command promat
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 dg3 Replies
- Altera_Forum
Honored Contributor
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
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
On Windows 7 I use the following two commands in the command prompt:
Thomas.<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