Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Disabling USB_SERIAL_JTAG on esp32c3 to free up the pins. #16414

Closed
@JustDr00py

Description

@JustDr00py

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

import espnow
from machine import Pin
from time import sleep

relay = Pin(19, Pin.OUT)

while True:
    relay.on()
    sleep(1)
    relay.off()
    sleep(1)

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

CONFIG_ESP32C3_REV_MIN_3=y
CONFIG_ESP32C3_BROWNOUT_DET=y
CONFIG_ESP32C3_BROWNOUT_DET_LVL_SEL_7=
CONFIG_ESP32C3_BROWNOUT_DET_LVL_SEL_4=y
CONFIG_ESP32C3_BROWNOUT_DET_LVL=4
CONFIG_ESP_CONSOLE_UART_DEFAULT=
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y

master branch sdkconfig.c3usb

CONFIG_ESP32C3_REV_MIN_3=y

# Workaround for https://github.com/espressif/esp-idf/issues/14456
CONFIG_ESP_SYSTEM_HW_STACK_GUARD=n

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions