Hi all,
We are using RZ/A2M 2D barcode sample package,which has LCD option for displaying the output.
But our requirement doesn't need LCD sections.
I have tried removing all the LCD regarding sections but the frames were not running continuously once I removed LCD from the source.
Iam using "frame buffer" ie) capture RAM buffer as the input buffer for ZXING library.
If I include ,
R_CACHE_L1DataCleanLine(R_BCD_LcdGetOLVramAddress(), ((R_BCD_LCD_WIDTH * R_BCD_LCD_HEIGHT) / 2));
this API then it is working fine. But i was not using either of VideoRAM or the GraphicsRAM then why this API is needed... even when all the LCD portions was removed.
my basic flow will be like,
ret_val = R_BCD_CameraInit();
if(R_BCD_CameraCaptureStart() == -1){
printf("\n\r Failed to start Camera capture \n\r");
while(1);
}
/* Wait until camera capture is complete */
while ((frame_buf_id = R_BCD_CameraGetCaptureStatus()) == R_BCD_CAMERA_NOT_CAPTURED)
{
/* DO NOTHING */
}
input_bufadr = R_BCD_CameraGetFrameAddress(frame_buf_id);
zxing_decode_image((uint8_t *)input_bufadr, R_BCD_CAMERA_WIDTH, R_BCD_CAMERA_HEIGHT);
R_BCD_CameraClearCaptureStatus();
R_CACHE_L1DataCleanLine(R_BCD_LcdGetOLVramAddress(), ((R_BCD_LCD_WIDTH * R_BCD_LCD_HEIGHT) / 2));
this last R_CACHE_L1DataCleanLine is my concern.
thanks.