Skip to content

Camera Initialization Fails with DFS Enabled on ESP32-S3 #799

@DemTerritory

Description

@DemTerritory

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

The camera should initialize successfully with DFS enabled, as it does on the ESP32.

Actual behavior (suspected bug)

Enabling Dynamic Frequency Scaling (DFS) on the ESP32-S3 causes the esp_camera component to fail during initialization. The same configuration works correctly on the ESP32.
Camera model OV2640.

Error logs or terminal output

Logs with DFS Enabled:
I (1208) s3 ll_cam: DMA Channel=0
I (1208) cam_hal: cam init ok
I (1218) sccb-ng: pin_sda 4 pin_scl 5
I (1218) sccb-ng: sccb_i2c_port=1
E (1238) camera: Detected camera not supported.
E (1238) camera: Camera probe failed with error 0x106(ESP_ERR_NOT_SUPPORTED)
E (1238) gdma: gdma_disconnect(303): no peripheral is connected to the channel
E (1248) CAM: Camera Init Failed: ESP_ERR_NOT_SUPPORTED
I (2258) s3 ll_cam: DMA Channel=0
I (2258) cam_hal: cam init ok
I (2258) sccb-ng: pin_sda 4 pin_scl 5
I (2258) sccb-ng: sccb_i2c_port=1


Logs with DFS Disabled:
I (1197) s3 ll_cam: DMA Channel=0
I (1197) cam_hal: cam init ok
I (1207) sccb-ng: pin_sda 4 pin_scl 5
I (1207) sccb-ng: sccb_i2c_port=1
I (1227) camera: Camera PID=0x26 VER=0x42 MIDL=0x7f MIDH=0xa2
I (1227) camera: Detected OV2640 camera
I (1227) camera: Detected camera at address=0x30
I (1297) cam_hal: PSRAM DMA mode enabled
I (1297) cam_hal: buffer_size: 384000, half_buffer_size: 1024, node_buffer_size: 1024, node_cnt: 375, total_cnt: 376
I (1297) cam_hal: Allocating 385040 Byte frame buffer in PSRAM
I (1307) cam_hal: Frame[0]: Offset: 16, Addr: 0x3C180B60
I (1317) cam_hal: Allocating 385040 Byte frame buffer in PSRAM
I (1317) cam_hal: Frame[1]: Offset: 16, Addr: 0x3C1DEB90
I (1327) cam_hal: Allocating 385040 Byte frame buffer in PSRAM
I (1337) cam_hal: Frame[2]: Offset: 16, Addr: 0x3C23CBC0
I (1337) cam_hal: Allocating 385040 Byte frame buffer in PSRAM
I (1347) cam_hal: Frame[3]: Offset: 16, Addr: 0x3C29ABF0
I (1347) cam_hal: Allocating 385040 Byte frame buffer in PSRAM
I (1357) cam_hal: Frame[4]: Offset: 16, Addr: 0x3C2F8C20
I (1367) cam_hal: Allocating 385040 Byte frame buffer in PSRAM
I (1367) cam_hal: Frame[5]: Offset: 16, Addr: 0x3C356C50
I (1377) cam_hal: cam config ok

Steps to reproduce the behavior

esp_pm_config_t pm_config = { 
    .max_freq_mhz = 240, 
    .min_freq_mhz = 40, 
    .light_sleep_enable = false 
};
esp_pm_configure(&pm_config);

Project release version

master (latest)

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

Windows 10

Shell

CMD

Additional context

No response

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