AnsweredAssumed Answered

Load the buffer

Question asked by Diwakar Ragupathy Raj on Apr 25, 2018
Latest reply on Apr 26, 2018 by Diwakar Ragupathy Raj

Hi, 

I am working in STM3241G-EVAL, and i am trying to load the buffer with all black pixel values but i am getting an error saying "Expression is not assignable"

/*Camera Application header file*/

#define CAMERA_FRAME_BUFFER 0x64100000

 

/* Camera Initialization*/

void CAMERA_Init(void)
{
/* Initialize the Camera */
CameraError = BSP_CAMERA_Init(RESOLUTION_R320x240);
BSP_CAMERA_BlackWhiteConfig(CAMERA_BLACK_WHITE_BW);
if( CameraError != CAMERA_ERROR)
{

GUI_Delay(100);
/* Start the capture */
BSP_CAMERA_ContinuousStart((uint8_t *)CAMERA_FRAME_BUFFER);

CAMERA_Set_ContrastBrightness(CameraSettings.b.contrast, CameraSettings.b.brightness);
}
}

 

/*Trying to put white color in all pixel*/

for (i = IMAGE_COLUMN_SIZE; i > 0; i-- )
{
for ( j = 0; j < 2 * IMAGE_LINE_SIZE; j += 2 )
{
CAMERA_FRAME_BUFFER = 0xFFFF; // I have error in this statement
}
}

Please help me solve this.

Outcomes