cnlohr / esp32s2-cookbook

Low-level tests with the ESP32-S2
MIT License
94 stars 16 forks source link

ch32v003programmer, s3 version? #12

Open sysytwl opened 5 months ago

sysytwl commented 5 months ago

Hi, I need a little bit of help. I'm trying to immigrate the s2 programmer to s3 since my main project runs on s3. However, I got the following errors:

ESP-IDF) 5.2.2

and I also want to know which IDF version it was running on. thx

cnlohr commented 5 months ago

I believe I was on IDF 5.1 - give that a shot and see how it goes.

sysytwl commented 5 months ago

Thanks, before you reply. I tried 5.0. S2 compiled successfully. But on S3, #include "soc/dedic_gpio_reg.h" is missing. It seems to work only for S2. Which library should I use on S3? Is this library responsible for the current control of gpios?

sysytwl commented 5 months ago

image

Thx, it's working. I disable the 0x0c: Output clock on P2. 0x03: // Power-up

################################################# then I tried without Arduino. only ch32v003fun

[env:genericCH32V003F4U6] platform = ch32v board = genericCH32V003F4U6 ;framework = arduino upload_protocol = minichlink

it returns the error

Found ESP32S2 Programmer Error: File I/O Fault. *** [upload] Error 4294967286

is this a programmer's problem?

mahagr commented 2 months ago

Today I started to look into this and I got it to compile S2 binary in the latest IDF 5.3 by:

git rm components/tinyusb/ -r
idf.py add-dependency espressif/esp_tinyusb
idf.py update-dependencies

And commenting out #include "tusb_hid_gamepad.h" in couple of files.

Building for S3 needs some more work.