cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Newbie
Newbie
574 Views
Registered: ‎12-10-2018

DMA example not compiling. Error: 'XPAR_AXIDMA_0_DEVICE_ID' undeclared

All,

Maybe I'm doing something wrong, but I just cut-and-paste one of the AXIDME examples into my project after having synthesized the hardware and I came across the following error:

'XPAR_AXIDMA_0_DEVICE_ID' undeclared (first use in this function); did you mean 'XPAR_XSDP_0_DEVICE_ID'?               

The file is: xaxidma_example_sg_poll.c  

 

I clearly have some issues linking the project with the folder where the include files are which in my case is not the standard location but another drive. 

Where are these constants defined and what do they represent?

Thanks,

Pedro Diniz

 

0 Kudos
Reply
1 Reply
Xilinx Employee
Xilinx Employee
554 Views
Registered: ‎10-21-2010

Hi @pedro.diniz,

These macros are defined in <SDK Workspace>/<BSP>/<Processor Instance>/include/xparameters.h. They are used for defining the info related to the IP in your design (ex. number of device instances, base addresses, etc.). Please note that this file is generated while building the BSP

0 Kudos
Reply