hi
I am using DM648 Kit and Psp_driver_example which is sd_compositor.
I have problem with cache cocherence on below code. it does not show any display.
I spent too much time with this. but i still cant solve.
please help me, how to fix cache coherence problem.
/* Invalidate the buffer before giving to capture driver */
BCACHE_inv((Uint8 *)capChInfo[count].frame->frame.frameBufferPtr, (CAP_FRAME_SIZE),TRUE);
/* Capture buffer will return the latest captured buffer */
status |= FVID_exchange(capChInfo[count].chanHandle, &(capChInfo[count].frame));
///////////// image processing here /////////////
framepointer = (capChInfo[count].frame->frame.frameBufferPtr);
for(i = 0; i < 704; i++)
{
for(j = 0; j < 480; j++)
{
*(framepointer + j * (i + 1) ) = 0x38383838; // 0x38383838 is example
}
}
video_compositor(&disChInfo, &capChInfo[0], numCompositorChannel, DIS_NUMPIXELS, DIS_NUMLINES, capNumPixels, CAP_NUMLINES); /* inNumLines */
/* Flush and invalidate the processed buffer so that the EDMA reads
the processed data */
BCACHE_wbInv((Uint8 *)disChInfo.frame->frame.frameBufferPtr, DIS_FRAME_SIZE,TRUE);
status |= FVID_exchange(disChInfo.chanHandle, &(disChInfo.frame));