I'm trying to use the VICP on the DM6441 device to offload some DSP processing. However, I am unable to initialize the VICP. The CPIS_init() function returns a -1 and the error code is CPIS_INIT_ERROR. I tracked the error as far into the source code as I could, and I found that a function called IP_RUN_init() in imgproclib.c is failing which produces the error. I do not think we have the source code for this function so I cannot go any further to debug. I am using version 3.2 of the VICP image processing library for the DM6441. Below you will find the parameters that I am providing to the CPIS_init function:
vicpInit.cacheWbInv = (Cache_wbInv) BCACHE_wb;
vicpInit.staticDmaAlloc = 1;
vicpInit.maxNumProcFunc = 1;
vicpInit.memSize = CPIS_getMemSize(vicpInit.maxNumProcFunc);
vicpInit.mem = MEM_alloc(0, ((vicpInit.memSize+127)>>7)<<7, 128);
Any assistance with this problem is greatly appreciated.