- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the solution!!! Do you know the reason for that issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the exact same problem and your solution works, thank you so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Initialize Eclipse workspace
2. Create a new software project in the SBT Configure the Board Support Package Configure BSP Project Build Properties Add source code to the project Configure Application Project Build Properties Define Application Include Directories Compile, Download and Run the Software Project 2. Verify the Board Connection 3. Run the Software Project on the Target- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- 1. Initialize Eclipse workspace 2. Create a new software project in the SBT Configure the Board Support Package Configure BSP Project Build Properties Add source code to the project Configure Application Project Build Properties Define Application Include Directories Compile, Download and Run the Software Project 2. Verify the Board Connection 3. Run the Software Project on the Target ----- --- Quote End --- Again, you missed the subject of the thread. The question was how to update nios ii eclipse project upon on modification in qsys and not to how to create new nios ii eclipse project (that is perfectly described in Nios II Classic Software Developer's Handbook). From my experience there are 2 cases:
- with minor modifications in qsys
- with major modifications in qsys
- Qsys: Make modification in qsys and save it under new name
- Quartus: Instantiate new qsys in the top module (commenting former one), add it to the project and remove former one
- Quartus: In the top module adjust (if necessary) external ports
- Quartus: Compile new system and program device with modified .sof
- Eclipse: generate new bsp
- Eclipse: in application properties point to the new bsp

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page