cnlohr / esp32s2-cookbook

Low-level tests with the ESP32-S2
MIT License
74 stars 13 forks source link

ch32v003programmer, s3 version? #12

Open sysytwl opened 2 weeks ago

sysytwl commented 2 weeks 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 2 weeks ago

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

sysytwl commented 2 weeks 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 1 week 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?