Forum Discussion
Updating Eclipse Project Upon NIOS II System Change
What do you have to do to make projects in NIOS II Software Build Tools for Eclipse pick up on changes made to a NIOS II System in Quartus II/QSYS? I have changed and added components to my system in QSYS and can't figure out how to get projects to pick up on the changes in Eclipse. The System.h file gets updated with the new/changed components, but I am unable to use any of the constants that are created in that file. The only way I have found is to create a new project in Eclipse using the sopcinfo file. Is there a way to force an existing project to update?
13 Replies
- Altera_Forum
Honored Contributor
Thanks for the solution! I actually had this exact same problem and the right click -> index -> rebuild fixed it. Does anyone know why the clean/build project functionality doesn't correctly pull in changes from system.h?
- Altera_Forum
Honored Contributor
If the system.h file is being updated, it sounds like you must be correctly updating the BSP. If not, right click on the BSP -> Nios II -> Generate BSP. That should pull in the changes from the regenerated Qsys system. It has always updated Eclipse for me. Hope this helps...
- Altera_Forum
Honored Contributor
I had regenerated the BSP. The system.h file did update, but I was unable to use the newly added constants in the# defines. For example, I had added another UART to my NIOS II system and the system.h file had updated with a bunch of contants, such as the baud and the base, but when I tried to use them in my main .c file, they were unrecognized.
- Altera_Forum
Honored Contributor
Hmm, I'm sorry, I haven't seen that before. In the BSP editor on the main tab, can you select the UART as the target for stderr, etc.? Does cleaning the project help at all? Sorry, I'm just grasping at straws here to be honest. Like you, I don't see any reason why main.c shouldn't have visibility of the changes in system.h.
- Altera_Forum
Honored Contributor
Are you sure your application project is pointing to the correct BSP? As long as it includes the correct system.h there is no reason why it couldn't find the constants.
Did you check that the constant names are rigorously identical? - Altera_Forum
Honored Contributor
Are you sure your application project is pointing to the correct BSP? As long as it includes the correct system.h there is no reason why it couldn't find the constants.
Did you check that the constant names are rigorously identical? - Altera_Forum
Honored Contributor
I had the same problem. I found the simple solution:
In the project explorer right click on your NIOS II project and in the popup menu click Index > Rebuild. Now you should be able use newly added defines in system.h file.- GNiaz
New Contributor
Thank you for the solution!!! Do you know the reason for that issue?
- Altera_Forum
Honored Contributor
I have the exact same problem and your solution works, thank you so much!
- Altera_Forum
Honored Contributor
--- Quote Start --- I had the same problem. I found the simple solution:In the project explorer right click on your NIOS II project and in the popup menu click Index > Rebuild. Now you should be able use newly added defines in system.h file. --- Quote End --- Thank you.. Even I had same problem.. Now its working fine.. - Altera_Forum
Honored Contributor
In my version 15.1 it doesn't work ... when I right-click on the project, then go to Index->Rebuild, nothing happens: the system.h file isn't modified and keeps the base address of blocks that are already removed from qsys !
So, how to proceed when changing system composition in Qsys ? Create new BSP in Eclipse ? Is it really no means to update already existing Eclipse project ? Thanks.