Forum Discussion
We are in the process of filling a kdb on this.
Description:
Due to a problem in the Intel® Quartus® Prime Standard Edition software version 20.1 and earlier, you may see the error above when you generate the system in the platform designer.
This error happened if you are using updated Windows 10 version and your design consist of DDR4 memory.
workaround:
To workaround the problem, you can follow the steps below:
1) uninstall Ubuntu* 18.04 (if you have one)
2) uninstall wsl
3) re-install wsl
4) download latest Ubuntu 18.04 from Microsoft Shop & install it
5) execute following on Ubuntu shell :
sudo apt-get update
sudo apt install wsl
sudo apt install dos2unix
sudo apt install make
sudo apt-get upgrade
Alternatively, you can refer to here for updating the WSL 2 software.
Please take note that Intel does not provide any warranty or guarantee regarding the use of third party software. Hyperlinks to other internet resources are used by you at your own risk.
This problem is scheduled to be fixed in a future release of the Intel® Quartus® Prime Standard edition software.
That's was pretty much what I have done, I have even upgraded to wsl --set-default-version 2.
However, I have hijacked the
C:\intelFPGA\20.1\nios2eds\Nios II Command Shell.bat
like this
wsl bash -c '%NIOS2_SHELL_SCRIPT% %*' 2>> c:\temp\test.txt
And the content in the test.txt file result in
/mnt/c/intelfpga/20.1/quartus/../nios2eds/sdk2/bin/nios2-bsp: line 451: nios2-bsp-update-settings: command not found nios2-bsp: nios2-bsp-update-settings failed make: *** [setup] Error 1
Line 451 in nios2-bsp look like this
nios2-bsp-update-settings$windows_exe --settings "$settings_pname" --bsp-dir $bsp_dir --sopc "$sopc_design_file" --script "$default_tcl" ${default_tcl_options[@]} ${create_update_options[@]} || {
So if I change the line temporarily into
/mnt/c/intelfpga/20.1/quartus/../nios2eds/sdk2/bin/nios2-bsp-update-settings$windows_exe --settings "$settings_pname" --bsp-dir $bsp_dir --sopc "$sopc_design_file" --script "$default_tcl" ${default_tcl_options[@]} ${create_update_options[@]} || {
Now the script will "find" nios2-bsp-update-settings and execute it
The problem is that
your are missing paths to your scripts and/or
changing to the installation directory when executing the scripts and/or adding a installation path prefix to your scripts and/or
update the PATH variable so it can find the scripts in /mnt/c/intelfpga/20.1/quartus/../nios2eds/sdk2/bin,
(${_ACDS_ROOT}/nios2eds/sdk2/bin).
The script executing system is currently in directory
/mnt/c/Users/StefanThorlacius/AppData/Local/Temp/alt8456_4792771601944741470.dir/0253_s0_gen/qsys_pre_compile/system_ddr3_s0_software
and can not "find" nios2-bsp-update-settings.exe in /mnt/c/intelfpga/20.1/quartus/../nios2eds/sdk2/bin
Line 451 in nios2-bsp, expanded, look like this
nios2-bsp-update-settings --settings sequencer_bsp/settings.bsp --bsp-dir sequencer_bsp --sopc ../pre_compile.sopcinfo --script /mnt/c/intelfpga/20.1/nios2eds/sdk2/bin/bsp-set-defaults.tcl default_sections_mapping sequencer_mem use_bootloader DONT_CHANGE
it will generate the error message in Generate HDL log window
Error: s0: Cannot find sequencer/sequencer.elf Error: s0: An error occurred while executing "error "An error occurred"" .............................
nios2-bsp-update-settings is a binary file, so I have difficulties to examine this further
Regards