Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHow to execute NIOS II Command Shell commands from a *.bat file
There is probably a simple solution to this, but I am having a hard time finding it in any of the documentation. I have four applications that I need to build for a single board. I can build t...
Altera_Forum
Honored Contributor
15 years agoHere is my solution/workaround for now anyways.
creatNiosApps.bat --------------------------------------------------------------- copy "C:\Development\Ethernet_ES\NIOS\test.sh" "C:\altera\91\nios2eds\user.bashrc" "C:\altera\91\nios2eds\Nios II Command Shell.bat" --------------------------------------------------------------- test.sh --------------------------------------------------------------- NIOS_DIR="C:/Development/Ethernet_ES/NIOS" mkdir $NIOS_DIR"/Hex_Files" make -C $NIOS_DIR"\software\output_app" clean make -C $NIOS_DIR"\software\output_app" all $SOPC_KIT_NIOS2/bin/elf2hex --base=0x41060000 --end=0x41067fff --width=8 --input=$NIOS_DIR"/software/output_app/output_app.elf" --output=$NIOS_DIR"/Hex_Files/output_app.hex" rm -rf "C:\altera\91\nios2eds\user.bashrc" exit -------------------------------------------------------------------- Thanks for all the help