IMX477 Rev E camera white snapshot immediately after mode change with picamera2 on CM4

Hi, hoping someone can help with this. I’ve got two IMX477 HQ camera modules on a Raspberry Pi CM4, connected to the two CSI ports, using picamera2.

Camera 0 is a Rev.D board and captures fine. Camera 1 is a Rev.E board and the images come out wrong — mostly all white, or in some runs almost entirely pink.

The odd part: when I’m streaming video and want to grab a snapshot, I switch to a different mode and fire the snapshot immediately. On Rev.E that produces an all-white frame. If I wait about 1 second after the mode change before taking the snapshot, it’s fine. On the older Rev.D (and on Rev.B) I can take the snapshot immediately with no problem.

I’ve tried different still configurations and it doesn’t help. The module itself does work — libcamera-still -t 5000 -o test.jpg on the Rev.E produces a normal image.

I’ve attached capture_example.py (the script I use to stream and capture), plus image_cam_0.jpeg (correct), image_cam_1.jpeg (wrong), and the terminal outputs for both cameras.

Thanks for the detailed report and the logs. I went through the test results you shared.

I tried to reproduce this on our side with the capture_example.py flow, but our current test bench only has Rev.B modules on hand, and I can’t get them to misbehave — snapshots right after a mode switch come out fine. So this is looking specific to the Rev.E boards rather than a general picamera2 issue.

A couple of things that would help narrow it down:

  1. Can you confirm the Rev.E (camera 1) produces a correct image with libcamera-still -t 5000 -o test.jpg on its own?
  2. Could you post the exact mode configuration changes you’re making, the timing of the snapshot command relative to the switch, and the relevant part of capture_example.py?

The ~1 second wait you found is a useful data point — it suggests the sensor/ISP isn’t fully settled when the capture is triggered immediately after a mode switch on Rev.E.

Just to confirm — Rev.B works fine for us as well. The problem only shows up on Rev.E. And from what I can tell, Rev.E is the only revision still being produced right now, which is why this is a problem for us.

That matches what I’m seeing here. Since this seems tied to the board revision, could you post photos of the front and back of both the Rev.D and Rev.E modules? I’d like to compare the silkscreen markings and components between the two to identify exactly which hardware differs.

Sure, here are the photos.

RevD front.jpeg

RevD back.jpeg

RevE front.jpeg

RevE back.jpeg

image_77383638231734312010396.png

Thanks for the photos. Looking at the silkscreen, the boards are marked UC-698 Rev.E and UC-698 Rev.D1 — that’s a different board series than the UC-A65 Rev.B modules we were expecting to compare against. So the hardware identification is a bit different than originally thought.

That’s actually helpful for the investigation: the behavior you’re describing lines up with Rev.E specifically on the UC-698 series. Can you double-check the exact markings on the modules you’ve been testing so we’re sure which board is which in your setup?

Checked again — in our testing both RevB and RevD capture correctly. Only RevE fails. So it’s definitely the RevE board that has the mode-switch snapshot issue.

Understood. To summarize where we are: the all-white snapshot after an immediate mode switch reproduces only on the Rev.E module (UC-698 Rev.E). Rev.B and Rev.D boards take the snapshot immediately without issue, and the Rev.E module itself is fine when given a ~1 second delay after the mode change before capturing. The current workaround is to add that delay after switching modes before issuing the snapshot. The root cause on Rev.E is still under investigation on our side, and I’ll update this thread once we have more.