I encountered sam issue, i fix it by remove esp_cam_ctlr_receive, Theres no place to call it in esp_video compoent too. After remove it the callback esp_cam_ctlr_evt_cbs_t will be invoked.
Finally i got the caputed image but the size and color has some problem.
Search found 4 matches
- Mon Mar 30, 2026 11:59 am
- Forum: ESP-IDF
- Topic: ESP32-P4 Camera App: esp_cam_ctlr_receive() hangs
- Replies: 10
- Views: 5696
- Mon Mar 30, 2026 11:53 am
- Forum: ESP-IDF 中文讨论版
- Topic: ESP32-P4X-Function-EV-Board无法启动camera
- Replies: 2
- Views: 177
Re: ESP32-P4X-Function-EV-Board无法启动camera
使用v5.5时,sccb_i2c_config_t.scl_speed_hz 应该配置成100000而非10000,解决ESP_CAM_SENSOR_IOC_S_STREAM启动问题,但是esp_cam_ctlr_receive函数会阻塞,不需要调用这个,回到函数esp_cam_ctlr_evt_cbs_t会被触发的
- Wed Mar 25, 2026 6:16 am
- Forum: ESP-IDF 中文讨论版
- Topic: ESP32-P4X-Function-EV-Board无法启动camera
- Replies: 2
- Views: 177
Re: ESP32-P4X-Function-EV-Board无法启动camera
升级到v6.0版本解决,但后续流程出现了颜色格式转化不支持的问题,无法由raw8转化为rgb565格式
//---------------CSI Init------------------//
esp_cam_ctlr_csi_config_t csi_config = {
.ctlr_id = 0,
.h_res = CONFIG_EXAMPLE_MIPI_CSI_DISP_HRES,
.v_res = CONFIG_EXAMPLE_MIPI_CSI_DISP_VRES,
.lane_bit_rate_mbps = EXAMPLE_MIPI_CSI_LANE_BITRATE ...
//---------------CSI Init------------------//
esp_cam_ctlr_csi_config_t csi_config = {
.ctlr_id = 0,
.h_res = CONFIG_EXAMPLE_MIPI_CSI_DISP_HRES,
.v_res = CONFIG_EXAMPLE_MIPI_CSI_DISP_VRES,
.lane_bit_rate_mbps = EXAMPLE_MIPI_CSI_LANE_BITRATE ...
- Wed Mar 25, 2026 2:36 am
- Forum: ESP-IDF 中文讨论版
- Topic: ESP32-P4X-Function-EV-Board无法启动camera
- Replies: 2
- Views: 177
ESP32-P4X-Function-EV-Board无法启动camera
最新ESP32-P4X-Function-EV-Board开发板,跑esp-idf v5.5.3的examples\peripherals\camera\mipi_isp_dsi示例demo,启动相机时失败。
int enable_flag = 1;
// Set sensor output stream
ret = esp_cam_sensor_ioctl(cam, ESP_CAM_SENSOR_IOC_S_STREAM, &enable_flag);
ret返回失败
日志:
D (1865) sccb_i2c: new io_i2c: 0x48000e50
I (1875 ...
int enable_flag = 1;
// Set sensor output stream
ret = esp_cam_sensor_ioctl(cam, ESP_CAM_SENSOR_IOC_S_STREAM, &enable_flag);
ret返回失败
日志:
D (1865) sccb_i2c: new io_i2c: 0x48000e50
I (1875 ...