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++

Custom peripheral

Honored Contributor II

I have a custom avalon peripheral with a C header file that needs to accessed. I'm on 10.1sp1 of the tools. Using Eclipse SBT, it can't seem to find the header files. The peripheral is located under the "ip" directory in the hardware project directory. I would assume that the tools would be smart enough to know this. Am I wrong or am I just missing something. Using the old legacy Eclipse IDE tool generates and compiles correctly. 


Here's an sample of the error it spits out: 


In file included from ads1256.c:5: 

ads1256.h:8:26: error: ads1256_regs.h: No such file or directory 

ads1256.c: In function 'ADS1256_0_Handler': 

ads1256.c:33: warning: implicit declaration of function 'ADS1256_IRQ_CLR' 

ads1256.c: In function 'ADS1256_0_Init': 

ads1256.c:66: warning: implicit declaration of function 'ADS1256_LIST_CLEAR' 

ads1256.c:69: warning: implicit declaration of function 'ADS1256_LIST_WR' 

ads1256.c:69: error: 'ads1256_chan_0' undeclared (first use in this function) 

ads1256.c:69: error: (Each undeclared identifier is reported only once 

ads1256.c:69: error: for each function it appears in.) 

ads1256.c:69: error: 'ads1256_common' undeclared (first use in this function) 


I'd like to get this resolved if anyone has ever experienced this problem. 


Thank you.
0 Kudos
1 Reply
Honored Contributor II

It's a little different with the new software tools. You need a software .tcl file that lives next to the hardware .tcl file in the directory containing your IP. 


If you take a look at some other IP cores you can probably just replicate what they do. If you have a fairly simple driver then maybe looking at the dispatcher IP in this file will point you in the right direction:
0 Kudos