Microchip-MPLAB-Harmony / vision

Other
1 stars 0 forks source link

SAMA7G54-EK doesn't init without camera #1

Open krzysztofstrycharz opened 1 month ago

krzysztofstrycharz commented 1 month ago

Hi,

there is a bug in the code when camera is not connected or is not recognized correctly the appliacation stops in fault handler, exactly in software_interrupt_irq_handler or data_abort_irq_handler. The problem is in DRV_ImageSensor_Probe() function in drv_image_sensor.c file. At line 320, when we try to auto-detect the camera, the loop iterates through the null pointers in the array and then the code tries to write the data to the structure at the empty address: isensor->drvI2CHandle = I2CHandle;. You should checking if Device[i] is a null pointer or change DRV_IMAGE_SENSOR_MAX_DEVICES = 3 in the drv_image_sensor.h file.

Regards KS

sandeepsheriker commented 1 month ago

Hi, Thank you for your detailed feedback. We will address this issue in the next release.

Regards, Sandeep Sheriker M