Hello Team,
I hope this message finds you well.
I'm writing to you concerning some technical issues I've been experiencing with my AP1302 camera driver and a GStreamer pipeline on my i.MX8M Plus system.
Firstly, upon testing the camera, I noticed an error in the dmesg logs that indicated a failure to read a register from the AP1302 during initialization. I've ensured that the correct device tree overlay is being used and that the hardware connections are properly set up, but the issue persists.
I have carefully verified that the correct overlays (overlay-cam1-ap1302-ar1335-dual.dtbo) are being used for the camera setup.
The relevant error message from the logs is as follows:
I have attempted to debug this issue, notably by checking the I2C bus using the i2cdetect command. The AP1302's address (0x3c) is not present on any of the I2C buses, which might indicate a communication problem with the camera.
Secondly, I have been trying to run a GStreamer pipeline that uses a TensorFlow Lite model for inference on the camera images (gstnninferencedemo-posenet-camera). The pipeline fails to run properly, and the error messages seem to suggest issues with memory allocation and data format negotiation between the pipeline elements. Here's an excerpt from the error message:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
../git/sys/v4l2/gstv4l2src.c(659): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
While I've been trying to debug these issues separately, it's possible that they might be related. For example, if the AP1302 driver issue is preventing the system from correctly obtaining camera images, it could potentially be the cause of the issues with the GStreamer pipeline as well.
I would appreciate your assistance in resolving these issues. Please let me know if you need any further information, or if there are any specific steps you recommend me to take in debugging these problems.
Best regards,
Mostapha BARZIZOUI - FAE AVNET Silica ( FR & BE)