Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4803

Camera board • Monochrome sensor with error "Can't configure camera with invalid configuration"

$
0
0
Hi everyone,

I'm working on IMX585 mono variant sensor but facing some issue. Here is my setup:

For the driver, I'm just replacing the RGGB format to MEDIA_BUS_FMT_Y12_1X12 in the driver. Libcamera can detect it as a mono sensor correctly based on the fact it is asking for imx585_mono.json for tunings file. Given that I don't have the tunings file yet, I asked it to use imx296_mono.json instead, and here is the terminal output:

Code:

pi@imx585:~ $ export DISPLAY=:0; rpicam-still --viewfinder-mode 3860:2180:12:P -o test.jpg -t 0 -v --tuning-file ~/libcamera/src/ipa/rpi/pisp/data/imx296_mono.json[0:01:23.631317737] [1132]  INFO Camera camera_manager.cpp:284 libcamera v0.0.0+4579-cda559c1[0:01:23.643309780] [1133]  INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 03-04-2024 (21:02:20)[0:01:23.644877382] [1133]  WARN CameraSensorProperties camera_sensor_properties.cpp:274 No static properties available for 'imx585'[0:01:23.644981141] [1133]  WARN CameraSensorProperties camera_sensor_properties.cpp:276 Please consider updating the camera sensor properties database[0:01:23.656269723] [1133]  INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx585@37 to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0Options:    verbose: 2    info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg    timeout: 0ms    width: 0    height: 0    output: test.jpg    post_process_file:    preview: default    qt-preview: 0    transform: identity    roi: all    metering: centre    exposure: normal    ev: 0    awb: auto    flush: false    wrap: 0    brightness: 0    contrast: 1    saturation: 1    sharpness: 1    framerate: 30    denoise: auto    viewfinder-width: 0    viewfinder-height: 0    tuning-file: /home/pi/libcamera/src/ipa/rpi/pisp/data/imx296_mono.json    lores-width: 0    lores-height: 0    autofocus-range: normal    autofocus-speed: normal    autofocus-window: all    hdr: off    mode: unspecified    viewfinder-mode: 3860:2180:12:P    metadata:    metadata-format: json    encoding: jpg    quality: 93    raw: 0    restart: 0    timelapse: 0ms    framestart: 0    datetime: 0    timestamp: 0    keypress: 0    signal: 0    thumbnail width: 320    thumbnail height: 240    thumbnail quality: 70    latest:    immediate 0    AF on capture: 0    Zero shutter lag: 0No connector ID specified.  Choosing default from list:Connector 32 (crtc 0): type 11, 0x0Connector 41 (crtc 0): type 11, 0x0Preview window unavailableRunning without preview windowOpening camera...Acquired camera /base/axi/pcie@120000/rp1/i2c@80000/imx585@37Configuring viewfinder...Viewfinder size chosen is 1920x1080Mode selection for 3860:2180:12:P    R12,3860x2180/0 - Score: 0Stream configuration adjusted[0:01:23.662469967] [1132] ERROR Camera camera.cpp:1171 Can't configure camera with invalid configurationClosing RPiCam application(frames displayed 0, dropped 0)Camera stopped!Tearing down requests, buffers and configurationCamera closedERROR: *** failed to configure streams ***


The error happens on this line:

Code:

ERROR Camera camera.cpp:1171 Can't configure camera with invalid configuration
Tracing the code leads me to the function here:
libcamera\src\libcamera\pipeline\rpi\common\pipeline_base.cpp

Code:

CameraConfiguration::Status RPiCameraConfiguration::validate()
But for some reason none of the error shows up in the log, so I'm kind of confused on where did it fails.

Statistics: Posted by will127534 — Sat May 18, 2024 7:20 pm



Viewing all articles
Browse latest Browse all 4803

Trending Articles