Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIs the console not the best location to run a distributed demonstration batch file? Such as...
DE0-nano-1.0.5\Demonstration\DE0_Nano_SOPC_DEMO\demo_batch\test.bati found nios2-download and nios2-terminal in c:\altera\11.0sp1\nios2eds\bin and added it to path environmental variable. It now gets further along, but with different error messages.... cygdrive/c/altera/11.0sp1/nios2eds/bin/nios2-download: line 596: nios2-elf-objcopy: command not found DE0_Nano.elf.srec: Unable to open input file rm: cannot remove 'DE0_Nano.elf.srec': No such file or directory nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Searched and found nios2-elf-objcopy.exe
added c:\altera\11.0sp1\nios2eds\bin\gnu\h-i686-mingw32\bin
to path, re-opened cmd console, confirmed path, and ran test.bat Now it seems like it is working. At some point I will learn more about Nios terminal, for now just want to make sure all the demos are running as a stable base to start with. Sure wish at least the demos would work straight out of the box. test_bashrc contains the following: # file: nios2_sdk_shell_bashrc# # 2004.03.15 dvb# # +------------------------------------------------# | This is the Nios II Kit SDK Shell rc file# |# | It calls the standard SOPC Builder rc file, first, and# | then patches a few things up to do with replicated# | scripts and revisions, so that the ones provided# | with Nios II take precedence.# | # |# | call the SOPC Builder standard script# | . "$QUARTUS_ROOTDIR/sopc_builder/bin/nios_bash" # |# | Alias things we like very much# | alias nb=nios2-build alias nios-build=nios2-build alias nr=nios2-run alias nios-run=nios2-run alias nd=nios2-debug alias nios-debug=nios2-debug alias nc=nios2-console alias nios-console=nios2-console nios2-download de0_nano.elf -c usb-blaster[usb-0] -r -g
nios2-terminal -c usb-blaster[usb-0]
# remove exit # End of file test.bat contains the following (and calls above): %QUARTUS_ROOTDIR%\\bin\\quartus_pgm.exe -m jtag -c USB-Blaster[USB-0] -o "p;DE0_Nano.sof" @ set SOPC_BUILDER_PATH_71=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_71% @ set SOPC_BUILDER_PATH_72=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_72% @ set SOPC_BUILDER_PATH_80=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_80% @ set SOPC_BUILDER_PATH_81=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_81% @ set SOPC_BUILDER_PATH_90=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_90% @ set SOPC_BUILDER_PATH_91=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_91% @ set SOPC_BUILDER_PATH_92=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_92% @ set SOPC_BUILDER_PATH_100=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_100% @ set SOPC_BUILDER_PATH_101=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_101% @ set SOPC_BUILDER_PATH_102=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_102% @ set SOPC_BUILDER_PATH_110=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_110% @ set SOPC_BUILDER_PATH_111=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_111% @ set SOPC_BUILDER_PATH_112=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_112% @ set SOPC_BUILDER_PATH_120=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_120% @ "%QUARTUS_ROOTDIR%\bin\cygwin\bin\bash.exe" --rcfile ".\test_bashrc" pause