Altera_Forum
Honored Contributor
14 years agoCustom peripheral
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.