M5Cam sccb error



  • Hi I am testing and playing around with the M5Cam. I use the esp32-cam-demo and mingw32. After setting up I get this Errors:

    E (630) sccb: i2c write reg=0xff err=0xffffffff
    .
    .
    .
    E (38550) sccb: i2c write reg=0x05 err=0x107
    E (38580) camera: Failed to set frame size
    E (38580) camera_demo: Camera init failed with error 0x20002

    But he detected the ov2640 and I activated it in menuconfig.
    If I could fix the errors with the Firmware, which is including I dont know how to run it correctly.
    Would be nice if someone knows the solution.



  • I also got same error when I use the code in Github(https://github.com/moononournation/esp32-cam-demo).

    I (19) cpu_start: Starting scheduler on PRO CPU.
    I (0) cpu_start: Starting scheduler on APP CPU.
    E (696) sccb: i2c write reg=0x28 err=0xffffffff
    ...
    E (25316) sccb: i2c write reg=0xe0 err=0xffffffff
    I (25316) camera_demo: Detected OV2640 camera, using JPEG format
    E (25326) sccb: i2c write reg=0xff err=0xffffffff
    ...
    E (30566) camera: Failed to set frame size
    E (30566) camera_demo: Camera init failed with error 0x20002

    When I burn the firmware 'M5Cam v0.02' using the M5Burner, I could revert it to the out-of-box demo.



  • I just would like to let you know my status

    1. Burn 'M5Cam v0.02' firmware.
    2. git clone --recursive https://github.com/m5stack/esp32-cam-demo
    3. Then 'make' it
    4. plug off usb

    Now it is working fine.

    in my case, I think I pulled the code from wrong repository.



  • @aoyama_prodM5Cam sccb error 中说:

    git clone --recursive https://github.com/m5stack/esp32-cam-demo

    I got same error =(. I compiled 'esp32-cam-demo' by PlatformIO in Visiual Studio Code...
    I think, something wrong in compiler options..



  • I compile successfully with original esp-idf!

    remark: you clone esp-idf.git master branch, that can be untested.
    I checkout latest release commit:

    git clone --recursive https://github.com/espressif/esp-idf.git
    git checkout 3b92e85
    git status
    ....remove newer folders
    git clone https://github.com/moononournation/esp32-cam-demo.git
    git submodule update --init --recursive
    make menuconfig
    make flash
    it works!!



  • I'm getting this with the arduino code atm. looks like an issue with the esp32 not getting the ova's vid and pid via the sda pins.
    Any idea what the difference in the two sources is?



  • It not work

    cd esp-idf

    git checkout 3b92e85

    git submodule update --init --recursive

    cd esp32-cam-demo-m5cam

    make

    esp32-cam-demo-m5cam/main/app_main.c:35:29: fatal error: esp_http_server.h: No such file or directory
    compilation terminated.
    make[1]: *** [app_main.o] Error 1
    make: *** [component-main-build] Error 2



  • I'm not seeing that folder.
    Try WebServer.h

    I'm trying to modify the arducam to work with the M5cam but having issues.