Skip to content

IMX219 test pattern with window activated randomly #2039

Description

@nzottmann

In a CM3 / IMX219 based python/picamera (legacy stack) application the camera picture sometimes looks like this.

Image

This happens on a very small number of devices randomly after multiple weeks of continuous runtime with no obvious reason. I have no access to the affected devices, but after research I could reproduce an identical picture by enabling the test pattern of the IMX219 with a window (using manual i2ctransfer commands), which makes me believe the test pattern gets somehow activated in production.

The circular shade probably comes from the ISPs lens correction, so the source must be the sensor itself. When this happens in production, most of the time only a part of the image is pink and the other still shows the camera image. I could reproduce this by modifying the test pattern window registers.

When this problem occurs, it remains until restarting the python application, which restarts the camera module. This resets the registers, which also clears the test mode.

I am currently clueless what could activate the test pattern randomly and rarely. The window is different every time, which looks like random register corruption. But if other registers would be affected, I would expect other problems to appear too, which is not the case. It seems like only some test pattern registers are affected.

I do not have any manual i2c communication to the sensor in my userspace application, only using picamera. As far as I understand, the sensor driver in the legacy stack is part of the firmware, which is not open. Thus my question:

Does the sensor driver in the legacy camera stack contain support for the IMX219 sensor test pattern, which could be triggered by a software bug from userspace?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions