I am going to implement ImageFilterDMA tutorial on Xilinx ML403 board (Virtex 4 FPGA) using Xilinx ISE 10.1. In the co_init.c line 56 and 57 there are these function calls :
CODE
image=co_memory_create("image","plbmem",524288,alloc_shared);
image2=co_memory_create("image2","plbmem",524288,alloc_shared);
image2=co_memory_create("image2","plbmem",524288,alloc_shared);
when I try to build software for PowerPC in Xilinx XPS, it report undefined reference to `alloc_shared' error because void * alloc_shared() function does not implement any where. its definition only come on the line 27 of co_init.c file like this:
CODE
extern void *alloc_shared(size_t);
but I can't find it's implementation any where in Impulse or Xilinx libraries. I will appreciate if any one help me to run Tutorial.
Note that in img_sw.c there are similar implementation for void * ext0_alloc() but I don't think it would be useful:
CODE
#ifdef __PPC__
void *ext0_alloc(size_t size)
{
static unsigned int address=XPAR_SDRAM_8MX32_BASEADDR;
void *ret;
if ((address+size) > XPAR_SDRAM_8MX32_HIGHADDR)
return(NULL);
ret=(void *) address;
address+=size;
return(ret);
}
#endif
void *ext0_alloc(size_t size)
{
static unsigned int address=XPAR_SDRAM_8MX32_BASEADDR;
void *ret;
if ((address+size) > XPAR_SDRAM_8MX32_HIGHADDR)
return(NULL);
ret=(void *) address;
address+=size;
return(ret);
}
#endif












