Nios-V on Cyclone IV - Nios-V on Cyclone IV
Hi all Trying to get a NÌOS-V running on Cyclone IV using, just the basics. Using Quartus 25.1. Just as a test I added just the neccessary components and the sysid as shows in the picture below. Quartus project was compiled without any errors. Moving on to the application, created a bsp with the sopcinfo file created by Quartus using the command : niosv-bsp --create --sopcinfo=iwis_top.sopcinfo --type=hal software/bsp/settings.bsp Then created the application using the command : niosv-app --bsp-dir=software/bsp --app-dir=software/app --srcs=software/app The application compiles with "empty" main file, but if I try to add system.h and altera_avalon_sysid_qsys to use alt_avalon_sysid_qsys_test() it failes with error "Unknown reference to alt_avalon_sysid_qsys_test". Should not this work right right out of the box ?
Replies:
Re: Nios-V on Cyclone IV
Hi ove, You have to establish an Ashling RiscFree project which uses the CMake flow. https://docs.altera.com/r/docs/726952/25.3.1/nios-v-embedded-processor-design-handbook/building-the-application-projects Command line flow: cmake -G "Unix Makefiles" -B software/app/build -S software/app make -C software/app/build Or, you can do it in the RiscFree IDE by creating a C/C++ project, selecting CMake empty file flow and pointing to the software/app folder which contains the source file.
Replies:
Re: Nios-V on Cyclone IV
tehjingy_Altera Nope the fix you suggested worked just fine, thanks for the assistance.
Replies:
Re: Nios-V on Cyclone IV
Hi ove I have created an internal ticket(15019118996) to track this and will be fix in future release of the Quartus Tool. Do you require further clarification on this?
Replies:
Re: Nios-V on Cyclone IV
Hi tehjingy_Altera Nice that worked, can now use the sysid from the firmware Thanks for the quick assistance. Do I need to flag this somewhere else as an bug ?
Replies:
Re: Nios-V on Cyclone IV
Hi ove I managed to reproduce the issue on my end. It seems like this is a valid issue on the driver side to cause the error you are facing. A workaround currently is to limit the naming of the SystemID IP to "sysid". Could you possible to try that and see if it solves the issue?
Replies:
Re: Nios-V on Cyclone IV
Hi ove Is it possible that you could attached a full log of the command used? I tried the steps on the environment here but could not see the error you are facing.
Replies:
Re: Nios-V on Cyclone IV
I already did, but still compiles with "Unknown reference to alt_avalon_sysid_qsys_test"
Replies:
Re: Nios-V on Cyclone IV
Hi Ove, Based on you steps. can you include the altera_avalon_sysid_qsys_regs.h Regards, WaiMun - 2026-03-01
external_document