adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
MIT License
3.97k stars 1.16k forks source link

M5Stack CoreS3 with ESP32S3 Camera Not Work #9155

Open tonyhuang1962 opened 3 months ago

tonyhuang1962 commented 3 months ago

CircuitPython version

Adafruit CircuitPython 9.1.0-beta.0 on 2024-03-28; M5Stack CoreS3 with ESP32S3

Code/REPL

import board
import espcamera

cam = espcamera.Camera(
    data_pins=board.CAMERA_DATA,
    external_clock_pin=board.CAMERA_XCLK,
    pixel_clock_pin=board.CAMERA_PCLK,
    vsync_pin=board.CAMERA_VSYNC,
    href_pin=board.CAMERA_HREF,
    pixel_format=espcamera.PixelFormat.JPEG,
    frame_size=espcamera.FrameSize.QQVGA,
    i2c=board.I2C(),
    external_clock_frequency=20_000_000,
 #   grab_mode=espcamera.GrabMode.WHEN_EMPTY
)

Behavior

Traceback (most recent call last): File "", line 12, in espidf.IDFError: Requested resource not found

Description

M5Stack CoreS3 IoT has a 30W pixel camera GC0308 at the bottom of the screen. But seems not work if using the above code. Got 'espidf.IDFError: Requested resource not found' error.

Additional information

No response

tannewt commented 3 months ago

Does it work with 9.0.3?

tonyhuang1962 commented 3 months ago

I could not find 9.0.3 on the web. I tried latest 'Adafruit CircuitPython 9.1.0-beta.0-18-gf4dfd5f119 on 2024-04-08; M5Stack CoreS3 with ESP32S3', got the same error 'espidf.IDFError: Requested resource not found'.

dhalbert commented 3 months ago

This board was added recently, only to main, so there is no 9.0.x release for it.

tonyhuang1962 commented 3 months ago

I added 'CONFIG_GC0308_SUPPORT=y' in sdkconfig to try to enable GC0308 support. But still got 'espidf.IDFError: Requested resource not found' error. (Adafruit CircuitPython 9.1.0-beta.0-26-gc978768d37-dirty on 2024-04-18; M5Stack CoreS3 with ESP32S3)

I took the following as reference: https://github.com/adafruit/circuitpython/issues/8883 https://github.com/adafruit/circuitpython/pull/8901