NIOS V with FreeRTOS
Hello,
With the latest QuartusPrime Standard 24.1, the problem described in this thread, from one year ago, still exists:
Briefly, when creating BSP that uses FreeRTOS, only the Altera JTAG UART and Intel NIOSV FreeRTOS drivers are found. None of the other Altera/Intel drivers are listed.
Is there a workaround for this problem?
Thank you,
d.
I can confirm this is still a problem in Q25.1. It seems it may be worse, in that fewer Altera drivers are picked up.
Here's a work around we are using...
1. Build the bsp for HAL in another directory. This will pull in all those drivers. Then just copy the <your bsp dir for hal>\drivers (inc and src directories) to your FreeRTOS bsp drivers directory. You could also just pick the missing Altera drivers from inc and src if you'd rather not see 'overwrite' messages for those that were already in FreeRTOS bsp.
2. Edit your FreeRTOS bsp alt_sys_init.c file to add the missing drivers' init function calls and the storage reservation macros. Basically you are pulling the HAL bsp's alt_sys_init.c data.
3. It seems the FreeRTOS system.h -is- getting correctly setup for those drivers even though they are not there. But if you find it is not (like base address or interrupt vector are wrong or missing) you can manually update system.h.
If you'll rebuild the bsp a lot you can write a python script to do the patching.