Page 1 of 1

[ESP-CAM] Error when running in log level Info but not Debug

Posted: Thu Sep 19, 2019 3:52 pm
by zuh0__
Hi,

I am having the weirdest problem.

I am implementing an http server to stream JPEG frames from a ESP32 board with a OV2640 sensor. When runnning in Debug log level (selected from menuconfig) namely:

```
CONFIG_LOG_DEFAULT_LEVEL_VERBOSE=y
CONFIG_LOG_DEFAULT_LEVEL=5
```

everything goes as planned and I can stream the JPEG frames.

If I try to set the log level to Info in menuconfig I start getting SCCB write errors and hence a camera initialization error.

```
E (1711) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=3
E (1721) camera_xclk: ledc_timer_config failed, rc=ffffffff
E (1761) sccb: SCCB_Write [ff]=01 failed
E (1761) sccb: SCCB_Write [12]=80 failed
E (3041) camera: Camera probe failed with error 0x20001
E (3041) camera-test: Camera Init Failed
```

For info: I am using the vanilla espressif/esp32-cam driver to interact with the camera.

Does anyone have any idea how this could happen with such a small change to the config ?

I have diffed sdkconfig after changing the option in menuconfig and it seems like changing the log level modifies many configuration options.

--
Gabriel