FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5882 Discussions

develop device driver for HAL

Honored Contributor II


I have a problem looking for help. 

I planned to develop device driver for my custom IP core. 

Altera supply some drivers for generic device,such as UART,JTAG UART .These drivers usually contain *_regs.h,*.h and *.c. 

when i create a BSP project by niosII SBT for Eclipse,if my hardware file (*.sopcinfo) contain UARTcomponent,the driver for UARTcan be copied to  

my BSP project directory automaticlly,then my BSP driver folder contain  

altera_avalon_uart_regs.h,altera_avalon_uart.h and altera_avalon_uart.c. 


the problem is as follows: 

after my custom IP core driver has been developed,when i create a BSP project by niosII SBT for Eclipse,the driver files (*_regs.h,*.h and *.c)cannnot be copied into the BSP driver folder as the UART files(altera_avalon_uart_regs.h,altera_avalon_uart.h and altera_avalon_uart.c). 


thanks for help!
0 Kudos
1 Reply
Honored Contributor II

You need to put a list of your source files in a tcl file with your component. Have a look at this document (http://www.altera.com/literature/hb/nios2/n2sw_nii52005.pdf).