- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am porting my class.ptf files into hw.tcl and sw.tcl files going from 7.1 (with 6.1 classic components) to 9.1. It does not appear that the nios2-bsp command is finding my sw.tcl files as it does not copy the include/source files over and does not reference the INSTANCE and INIT functions in alt_sys_init.c I know that my sopc builder path is setup properly as the SOPC builder itself finds my user components both the classic ones and the new ones with hw.tcl files. I have tried copying a couple of my sw.tcl file to my quartus/ip directory but that didn't work either. I also tried compiling a new 9.1 component with a hw.tcl file into the SOPC project thinking that maybe the bsp could not find sw.tcl file if a class.ptf file was in use (but I have seen altera components use class.ptf with sw.tcl file successfully). nios2-bsp does not complain about not being able to find anything. It completes successfully? Any ideas on whats wrong or how to debug this? Is there a project setting that needs to be set to enable using INIT and INSTANCE functions? Sorry for all the questions, seems like one thing after another... Thanks in advance jenniferLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where are your components located relative to your SoPC builder system?
Have you tried using the nios2-bsp-editor to create your settings.bsp file? You do need to specifically specify that the BSP is supposed to make use of a software component. Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the following command, it makes a settings.bsp file
nios2-bsp hal bsp_diag_rvp9ifd quartus --default_sections_mapping main_ram --set hal.make.bsp_cflags_debug -g --set hal.make.bsp_cflags_optimization -O2 I opened it with an editor, it shows Driver Name = none for my modules? So there is no enable check box next to them.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks!
nios2-bsp-editor was very useful in debugging this. I am not used to using the new tools yet. I made a stupid mistake and thought that the version number should be the Nios version number not my component version number due to all the altera examples where their version = nios version.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page