Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

nios2-bsp not finding user components in 9.1?

Altera_Forum
Honored Contributor II
1,615 Views

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 

jennifer
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
493 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
493 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
493 Views

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.
0 Kudos
Reply