nios-bsp fails with commands from readme file
I installed 23.1 in windows and linux.
I found a minimal max 10 demo for nios V/c
The instructions to make the design don't work.
- Invoke the quartus_py shell in the terminal
- Run the following command in the terminal from top level project directory:
> quartus_py scripts/build_sof.py
^ Those instructions make no sense and have no context. ^
[niosv-shell] D:\altera\kits\Max10_Nios_v> quartus_py scripts/build_sof.py
sys
Traceback (most recent call last):
File "scripts/build_sof.py", line 66, in <module>
generate_qsys = subprocess.Popen(["qsys-script","--script={}".format(qsys_tcl_dir),"--quartus-project={}".format(qpf_dir)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT,cwd=cwd_1)
File "d:\altera\23.1std\quartus\common\python\lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "d:\altera\23.1std\quartus\common\python\lib\subprocess.py", line 1327, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
That's OK! I did the usual qsys and qpf with the gui and it still works thankfully.
From the readme file:
c. Creating the bsp, build software sources and download elf
- To create software app with HAL OS, run the following commands in the terminal:
> niosv-bsp -c --quartus-project=hw/<>.qpf --qsys=hw/<>.qsys --type=hal sw/bsp_hal/settings.bsp
[niosv-shell] D:\altera\kits\Max10_Nios_v> niosv-bsp -c --quartus-project=hw/top.qpf --qsys=hw/sys.qsys --type=hal sw/bsp_hal/settings.bsp
2024.04.03.15:04:27 Error: Unrecognized switch <b>quartus-project</b>
2024.04.03.15:04:27 Error: Unrecognized switch <b>qsys</b>
2024.04.03.15:04:27 Error: Failed to validate switches.
--help
Example Commands
----------------
Creating a BSP
* niosv-bsp -c -t=hal -p=top.qpf -r=top -s=sys.qsys bsp/settings.bsp
Updating a BSP
* niosv-bsp -u -e="set_setting hal.make.cflags_optimization -O3" bsp/settings.bsp
Generating files in the "bsp" folder for an existing BSP settings file
* niosv-bsp -g -b=bsp settings.bsp
Exporting a BSP as a TCL script
* niosv-bsp -q -E=bsp.tcl bsp/settings.bsp
Re-creating a BSP with a TCL script
* niosv-bsp -c -t=hal -p=top.qpf -r=top -s=sys.qsys -x=bsp.tcl bsp/settings.bsp
[niosv-shell] D:\altera\kits\Max10_Nios_v> niosv-bsp -c -t=hal -p=top.qpf -r=top -s=sys.qsys bsp/settings.bsp
2024.04.03.14:42:10 Error: Unrecognized switch <b>p</b>
2024.04.03.14:42:10 Error: Unrecognized switch <b>r</b>
2024.04.03.14:42:10 Error: Failed to validate switches.
So, at this point the instructions don't work, and the example from the program's own help text is gibberish.
MY QUESTION IS:
DO YOU HAVE INSTRUCTIONS AND PROGRAMS THAT WORK?
CAN I GET THEM?