JTAG pins 12, 13, 14, & 15

ezed413
Posts: 4
Joined: Thu Oct 24, 2019 1:27 pm

JTAG pins 12, 13, 14, & 15

Postby ezed413 » Mon Mar 29, 2021 5:48 pm

For the 4-pins used for JTAG, can they be switched on/off via software or do they require hardware binding? In other words, can they be used for both programing and application software based on an internal mux which can be triggered somehow?

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: JTAG pins 12, 13, 14, & 15

Postby ESP_Sprite » Tue Mar 30, 2021 4:14 am

You can use them as normal GPIOs (or peripheral pins routed over the GPIO matrix) by configuring them as such in ESP-IDF. Obviously, they'll loose their function as JTAG pins when you do that. You can then programmatically restore that function by re-assigning the JTAG signals to the pins using the IOMUX.

maskemaske
Posts: 9
Joined: Fri Oct 08, 2021 3:43 pm

Re: JTAG pins 12, 13, 14, & 15

Postby maskemaske » Thu Feb 03, 2022 7:48 am

You can use them as normal GPIOs (or peripheral pins routed over the GPIO matrix) by configuring them as such in ESP-IDF.
Please advise on how to do so, for ESP32.

Simply configuring them as output, disabling pull-resistors, and then setting a level does not work.

Thanks

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: JTAG pins 12, 13, 14, & 15

Postby ESP_Sprite » Fri Feb 04, 2022 5:18 am

I think gpio_reset() should configure any pin to GPIO mode.

projix
Posts: 2
Joined: Thu Dec 15, 2022 1:31 pm

Re: JTAG pins 12, 13, 14, & 15

Postby projix » Thu Dec 15, 2022 4:18 pm

If someone finds this thread with an ESP32-S3, you also need to gall gpio_reset() on pins 39, 40, 41, 42.
Even though the manual says that if USB JTAG is enabled (which it is by default), then these pins are working.
If you do not call gpio_reset() on them first, they will not react at all.

Who is online

Users browsing this forum: No registered users and 74 guests