ESP32-S3 disabling JTAG
Posted: Mon Feb 12, 2024 8:24 am
Hi.
I'm working with esp32-s3 devkit N32R8V version:
https://docs.espressif.com/projects/esp ... itc-1.html
According to documentation, GPIO_39, GPIO_40, GPIO_41, GPIO_42 are occupied for JTAG and can't be used as GPIOs (e.g. in OUTPUT mode for push/pull operations).
As far as I understood, usage of JTAG can be disabled with eFuses.
https://docs.espressif.com/projects/esp ... ESP32%2DS3.
Here it is said:
I got
When I try to run
I receive this:
I'm working with esp32-s3 devkit N32R8V version:
https://docs.espressif.com/projects/esp ... itc-1.html
According to documentation, GPIO_39, GPIO_40, GPIO_41, GPIO_42 are occupied for JTAG and can't be used as GPIOs (e.g. in OUTPUT mode for push/pull operations).
As far as I understood, usage of JTAG can be disabled with eFuses.
https://docs.espressif.com/projects/esp ... ESP32%2DS3.
Here it is said:
But when I runBurning DIS_USB_JTAG eFuse will permanently disable the connection between USB_SERIAL_JTAG and the JTAG port of the ESP32-S3.
Code: Select all
espefuse --port /dev/ttyUSB0 summary
So I can see only JTAG_DISABLE eFuse, not DIS_USB_JTAG.Security fuses:
FLASH_CRYPT_CNT Flash encryption mode counter = 0 R/W (0x0)
FLASH_CRYPT_CONFIG Flash encryption config (key tweak bits) = 0 R/W (0x0)
CONSOLE_DEBUG_DISABLE Disable ROM BASIC interpreter fallback = 0 R/W (0x0)
ABS_DONE_0 secure boot enabled for bootloader = 0 R/W (0x0)
ABS_DONE_1 secure boot abstract 1 locked = 0 R/W (0x0)
JTAG_DISABLE Disable JTAG = 0 R/W (0x0)
DISABLE_DL_ENCRYPT Disable flash encryption in UART bootloader = 0 R/W (0x0)
DISABLE_DL_DECRYPT Disable flash decryption in UART bootloader = 0 R/W (0x0)
DISABLE_DL_CACHE Disable flash cache in UART bootloader = 0 R/W (0x0)
When I try to run
Code: Select all
espefuse --port /dev/ttyUSB0 burn_efuse JTAG_DISABLE 1
What I am doing wrong? And is there a way to disable JTAG to be able to use GPIO_39, GPIO_40, GPIO_41, GPIO_42 for my own purposes?espefuse.py v2.8
Connecting....
Burning efuse JTAG_DISABLE (Disable JTAG) 0x0 -> 0x1. This is an irreversible operation.
Type 'BURN' (all capitals) to continue.
BURN
WARNING: Detected crystal freq 0.00MHz is quite different to normalized freq 26MHz. Unsupported crystal in use?
A fatal error occurred: Efuse JTAG_DISABLE failed to burn. Protected?