Broddo
Occasional Contributor
2 years agoError creating a bsp with niosv-bsp
I'm trying to migrate from nios ii to niosv.
I've generated a license for a niosv/g, imorted it into Quartus and I've successfully swapped the nios ii for the niosv in Platform Designer. The assembler ran successfully and generated an sof file.
But now when I run niosv-bsp like so:
niosv-bsp-c --s=qsys/qsys.qsys --type=hal bsp/settings.bsp
I get the following error:
user@quartus-prime-vm:~/Developer/niov-proj$ niosv-bsp -c --s=qsys/qsys.qsys --type=hal bsp/settings.bsp
2024.04.16.17:11:46 Info: Searching for BSP components with category: os_software_element
2024.04.16.17:11:46 Error: Can't create SopcSystem from invalid EnsembleReport.
2024.04.16.17:11:46 Warning: Parameter value for: 'deviceFamily' is 'null'
java.lang.NullPointerException: Can't convert null string value for 'generateLegacySim' into class of class type 'java.lang.String'
at com.altera.embeddedsw.swinfo.utils.EnsembleReportUtils.convertStringToClass(EnsembleReportUtils.java:974)
at com.altera.embeddedsw.swinfo.utils.EnsembleReportUtils.parameterReportToClass(EnsembleReportUtils.java:956)
at com.altera.embeddedsw.swinfo.utils.EnsembleReportUtils.getParameterOrNull(EnsembleReportUtils.java:909)
at com.altera.embeddedsw.swinfo.SopcSystem.init(SopcSystem.java:213)
at com.altera.embeddedsw.swinfo.SopcSystem.create(SopcSystem.java:129)
at com.altera.embeddedsw.swinfo.SopcSystem.createFromSopcinfo(SopcSystem.java:191)
at com.altera.embeddedsw.swinfo.SopcSystem.createFromSopcinfo(SopcSystem.java:195)
at com.altera.embeddedsw.commandline.bsp.NiosVBspExec.getSopcSystem(NiosVBspExec.java:1039)
at com.altera.embeddedsw.commandline.bsp.NiosVBspExec.validate(NiosVBspExec.java:674)
at com.altera.utilities.AltCmdLineToolBase.runTheTool(AltCmdLineToolBase.java:716)
at com.altera.embeddedsw.commandline.bsp.NiosVBspExec.main(NiosVBspExec.java:1338)
Exception in thread "main" java.lang.NullPointerException
at com.altera.embeddedsw.commandline.bsp.NiosVBspExec.validate(NiosVBspExec.java:675)
at com.altera.utilities.AltCmdLineToolBase.runTheTool(AltCmdLineToolBase.java:716)
at com.altera.embeddedsw.commandline.bsp.NiosVBspExec.main(NiosVBspExec.java:1338)
I also noticed that some options provided in the help section of niosv-bsp and in the forum post "Nios® V Processor Installation and Hello World Execution" do not exist:
niosv-bsp -c --quartus-project=hw/top.qpf --qsys=hw/sys.qsys --type=hal sw/bsp_hal/settings.bsp
2024.04.16.17:19:18 Error: Unrecognized switch <b>quartus-project</b>
2024.04.16.17:19:18 Error: Unrecognized switch <b>qsys</b>
2024.04.16.17:19:18 Error: Failed to validate switches.
I am using Quartus Prime version 23.1std.0 build 991 11/28/2023 SC Lite Edition running on Ubuntu 22.04 targetting a MAX10 FPGA
Can you provide any help?