-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-C3 pulls up GPIO19 because it is used by USB (IDFGH-7984) #9495
Comments
Thanks @zikalino ! |
Internally, disable usb serial jtag DP pin's pullup when calling gpio_ll_pullup_dis and rtcio_ll_pullup_disable At usb serial jtag setup/install, re-enable DP pin's pullup Closes #9495
Internally, disable usb serial jtag DP pin's pullup when calling gpio_ll_pullup_dis and rtcio_ll_pullup_disable At usb serial jtag setup/install, re-enable DP pin's pullup Closes #9495
Internally, disable usb serial jtag DP pin's pullup when calling gpio_ll_pullup_dis and rtcio_ll_pullup_disable At usb serial jtag setup/install, re-enable DP pin's pullup Closes espressif#9495
Does anyone happen to have a ESP-IDF (5.1.2 or similar) project that demonstrates (re)using the GPIO18 and GPIO19 of a ESP32-C3 for any simple purpose? I'm trying to put a simple SPST tactical switch (push button) on each pin, which drives GPIO18 and GPIO19 low when pressed. The MCU should get an interrupt, but this is not happening. I'm not sure why, and I've written to the forum asking for help. |
Assuming you aren't using the USB JTAG feature, have you tried setting the eFuse bit for DIS_USB_SERIAL_JTAG? |
I'm trying to not use the eFuse, in order to allow users to selectively disable USB-JTAG. It makes no sense to me that the feature cannot be disabled, and worse yet there is no documentation stating whether it can or cannot be disabled. I'm still trying to debug the problem. |
Environment
git describe --tags
to find it): v4.4.1xtensa-esp32-elf-gcc --version
to find it): riscv32-esp-elf-gcc (crosstool-NG esp-2021r2-patch3) 8.4.0 (or xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2-patch3) 8.4.0)Problem Description
The GPIO pull-up configuration to configure GPIO19 does not work as expected.
Actual Behavior
After configuring gpio with the config below, the input is still pulled up.
To fix this, we have to clear the
USB_SERIAL_JTAG_DP_PULLUP
bit withCLEAR_PERI_REG_MASK(USB_SERIAL_JTAG_CONF0_REG, USB_SERIAL_JTAG_DP_PULLUP);
. That works but only after a second reset. ->Expected Behavior
We expect that GPIO19 is put in the desired state without other config. Or that this, or 'a' workaround is documented somewhere (if that is not the case)
The text was updated successfully, but these errors were encountered: