I am using mcsdk_video_2_2_0_23 and dspc8682 (8 c6678)
Sometimes the mcsdk video demo example stops working showing the following error
"cmem_drv: ERROR: DMA MEM Buffer allocation failed"
Following is the log which comes when the mcsdk video fails:
[1384429632.235682997] (DEBUG) openDevices() : There are a total of 8 devices discovered in the system.
[1384429632.235689776] (DEBUG) device2deviceMapping() : Device 0 does not need to map to another device. Reserving PCIe memory range.
[1384429632.235702483] (DEBUG) device2deviceMapping() : Memory range reserved for Dev 0, Memrage: 0x60000000, Size: 0x01800000
[1384429632.235709246] (DEBUG) initDevices() : Opening cmem driver...
[1384429632.235720781] (DEBUG) initDevices() : cmem driver opened.
[1384429632.235734733] (DEBUG) initDevices() : Allocating contiguous memory for static mapping...
[1384429632.237071245] (DEBUG) initDevices() : Static global memory allocated.
[1384429632.238541902] (DEBUG) initDevices() : Reserving shared memory range for static global memory...
[1384429632.238573485] (DEBUG) initDevices() : Static global memory range allocated for Dev 0, Memrage: 0x61800000
[1384429632.238579803] (DEBUG) initDevice() : Mapping x86 contiguous memory to static global memory on device #0...
[1384429632.238586758] (DEBUG) initDevices() : Global IO memory range allocated for Dev 0, Memrage: 0x62800000
[1384429632.238591797] (DEBUG) initDevices() : Shared static global memory starts at 0x61800000.
[1384429632.238606827] (DEBUG) initDevices() : Shared input starts at 0x62800000.
initDevices() Complete.
[1384429632.238628865] (DEBUG) createBufferPools() : Demo will use 16 CMEM buffers for input, 16 CMEM buffers for output.
[1384429632.238635057] (DEBUG) createBufferPools() : Allocating contiguous memory...
[1384429632.238639899] (DEBUG) createBufferPools() : 16 Input and 16 Output Buffers.
cmem_drv: ERROR: DMA MEM Buffer allocation failed
[1384429632.255527458] (ERROR) createBufferPools() : continuous memory allocation failed!
Error returned by createBufferPools(). Error code -1
Terminating remaining threads...
I can't find the reason for this ! How to solve this problem?