You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<
8000
div class="flash flash-full {{ className }}">
The CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG was removed in #15523 and in particular 0a11832c as part of a long series of attempts to improve the configurability of stdio across all the esp32 chips.
From the specific change comment I think you might be able to instead add CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED=n to the sdkconfig to disable the USB out and free up the pins that way.
For reference the other extra settings were removed in #15610 as the defaults were more appropriate and/or were the same so there was not need to add them here.
andrewleech
changed the title
Missing Parameters in sdkconfig.c3usb
Disabling USB_SERIAL_JTAG on esp32c3 to free up the pins.
Dec 18, 2024
Currently it may be possible to free up the USB Serial/JTAG pins on C3 by changing mpconfigboard.h or mpconfigport.h and setting #define MICROPY_HW_ESP_USB_SERIAL_JTAG 0, and also changing CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED=n as described by @andrewleech. The second part is a bug.
After #16236 is merged then you will only need #define MICROPY_HW_ESP_USB_SERIAL_JTAG 0 to get the same result.
Longer term I have a patch in development to automatically allow changing the USB pin modes on any build config, if USB is not currently in use. This is tracked in #14217 (although that issue mentions S3 only in the title.)
Port, board and/or hardware
esp32c3
MicroPython version
MicroPython v1.25.0-preview.114.gbdda91fe7.dirty on 2024-12-14; ESP32C3 module with ESP32C3
Reproduction
Expected behaviour
Relay to Turn on and off.
Observed behaviour
Traceback (most recent call last):
File "", line 13, in
ValueError: invalid pin
Additional Information
previous branch sdkconfig.c3usb
master branch sdkconfig.c3usb
Usually I can block
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
and pin 18 and 19 work but not in this case?Code of Conduct
Yes, I agree
The text was updated successfully, but these errors were encountered: