Page 1 of 1

ESP32-S2 - GPIO 39 not working as ouput?

Posted: Sun Apr 16, 2023 12:52 pm
by pppTec
I'm trying to use GPIO 39 as an output to drive an LED. I know on the ESP32 WROOM that's not possible, but it should be possible on the ESP32-S2. However, the output remains low.

gpio_set_direction(39, GPIO_MODE_OUTPUT);
gpio_set_level(39, HIGH);

What can I do? Is it conflicting with jtag (since IO39 is shared with the MTCK jtag function)? If so, how do I disable this?

Re: ESP32-S2 - GPIO 39 not working as ouput?

Posted: Mon Apr 17, 2023 1:38 am
by ESP_Sprite
Yes, it probably is configured by default to JTAG. Use gpio_reset() to reconfigure it to a plain old GPIO.

Re: ESP32-S2 - GPIO 39 not working as ouput?

Posted: Fri Apr 21, 2023 8:01 am
by pppTec
That worked! Many thanks!