Multiple HATs, unexplained imx477 front end errors, both CM4 IO Board and Raspberry Pi 5

  1. Where did you get the camera module(s)?
    Utronics
  2. Model number of the product(s)?
    arducam uc-512 rev. d1 camarray HAT x 2
    arducam imx477 mini 12mp uc-698 rev. e
  3. What hardware/platform were you working on?
    Raspberry Pi 5 and CM4 IO Board with raspi four compute module
  4. Instructions you have followed. (link/manual/etc.)
    followed every variation of config.txt edits recommended for this model and set up by arducam and tried different cables, different cam1 cam0 ports etc, auto detect 0 dtoverlay=imx477,cam1 dtoverlay=imx477,cam0, reinstalled libcamera firmware multiple times, cameras working, but can only get one HAT to respond on CM4 module and the Raspberry Pi 5 returns errors no matter what, whether 1 camera in cam1 or cam0 or using HATs.

Also sometimes when running lib cam still camera 1 and the HAT is connected to CAM 0 it connects and displays properly, and vice versa. But never when two HATs are connected. Tested the imx477s and switched cables and tested HATS individually and all components are working… just not together. Tried it with the RPi brand sensors and lenses as well and had the same issue when stacking the HATs, same 3 error codes when trying to launch and frozen black preview window
5. Problems you were having?
returning front end errors and freezing when attempting to test libcam-still cam1 or cam0 etc, though when asked to list computer sees the correct imx477 in both ports but cannot proceed beyond
6. The dmesg log from your hardware?
to be shown
7. Troubleshooting attempts you’ve made?
see above, was once able to get two previews with multiple terminal windows but no longer on cm4io. never with raspberry pi 5. followed the arducam 8 cam guide but no luck
8. What help do you need?
to get the two HATs working with a rasp pi 5 or cm4io compute module 4 io so i can use imx477 x8 cameras at take photos from 8 angles

Hi,
Please connect two HATs to the CM4 or Pi 5 and run the command

libcamera-still --list

Please paste the output of the command here.

andrc1@raspberrypicm4:~ $ libcamera-still --list
Available cameras

0 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@1/imx477@1a)
Modes: ‘SRGGB10_CSI2P’ : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
‘SRGGB12_CSI2P’ : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
4056x3040 [10.00 fps - (0, 0)/4056x3040 crop]

1 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@0/imx477@1a)
Modes: ‘SRGGB10_CSI2P’ : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
‘SRGGB12_CSI2P’ : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
4056x3040 [10.00 fps - (0, 0)/4056x3040 crop]

ERROR: Device timeout detected, attempting a restart!!!

[0:22:36.414762727] [2981] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[16:cap]: Dequeue timer of 1000000.00us has expired!

[0:22:36.414866584] [2981] ERROR RPI pipeline_base.cpp:1333 Camera frontend has timed out!

[0:22:36.414900289] [2981] ERROR RPI pipeline_base.cpp:1334 Please check that your camera sensor connector is attached securely.

[0:22:36.414933939] [2981] ERROR RPI pipeline_base.cpp:1335 Alternatively, try another cable and/or sensor.

ERROR: Device timeout detected, attempting a restart!!!

[0:22:37.627426407] [2981] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[16:cap]: Dequeue timer of 1000000.00us has expired!

[0:22:37.627687956] [2981] ERROR RPI pipeline_base.cpp:1333 Camera frontend has timed out!

[0:22:37.627758237] [2981] ERROR RPI pipeline_base.cpp:1334 Please check that your camera sensor connector is attached securely.

[0:22:37.627823611] [2981] ERROR RPI pipeline_base.cpp:1335 Alternatively, try another cable and/or sensor.

ERROR: Device timeout detected, attempting a restart!!!

[0:22:38.906629689] [2981] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[16:cap]: Dequeue timer of 1000000.00us has expired!

[0:22:38.906766121] [2981] ERROR RPI pipeline_base.cpp:1333 Camera frontend has timed out!

[0:22:38.906806567] [2981] ERROR RPI pipeline_base.cpp:1334 Please check that your camera sensor connector is attached securely.

[0:22:38.906841254] [2981] ERROR RPI pipeline_base.cpp:1335 Alternatively, try another cable and/or sensor.

ERROR: Device timeout detected, attempting a restart!!!

[0:22:40.128594501] [2981] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[16:cap]: Dequeue timer of 1000000.00us has expired!

[0:22:40.128710413] [2981] ERROR RPI pipeline_base.cpp:1333 Camera frontend has timed out!

[0:22:40.128741637] [2981] ERROR RPI pipeline_base.cpp:1334 Please check that your camera sensor connector is attached securely.

[0:22:40.128771175] [2981] ERROR RPI pipeline_base.cpp:1335 Alternatively, try another cable and/or sensor.

ERROR: Device timeout detected, attempting a restart!!!