"Unsupported detection protocol, switching and trying again"

maldus
Posts: 83
Joined: Wed Jun 06, 2018 1:41 pm

"Unsupported detection protocol, switching and trying again"

Postby maldus » Fri Oct 15, 2021 1:42 pm

Hello everyone,
I recently setup a new development machine for ESP32 devices (Linux, ESP-IDF v4.3). Everything goes smoothly as expected and I'm able to compile and flash my firmware. However there is one additional warning that I had never seen before and doesn't come up in my usual setup (same ESP-IDF version): when interacting with the device through the serial port there is always a step where the chip type is not detected:

Code: Select all

Detecting chip type... Unsupported detection protocol, switching and trying again
After this there is a new attempt and the chip is recognized as an ESP32. It is part of esptool.py (https://github.com/espressif/esptool/bl ... ol.py#L384). What could be the cause? Should I be concerned or can I safely ignore it?

Victoria Nope
Posts: 75
Joined: Fri Dec 04, 2020 9:56 pm

Re: "Unsupported detection protocol, switching and trying again"

Postby Victoria Nope » Fri Oct 15, 2021 5:13 pm

This behavior is explained few lines sooner in this comment. First, ESP32-C3 and newer is tried to be detected; if that fails, detection falls down to the "legacy" way for older chip models.

So, this message is what you'd expect to get printed for ESP32 (or to be precise, any chip older than ESP32-C3).

User avatar
stevenbennett
Posts: 34
Joined: Sun May 19, 2024 7:30 am
Location: High Bentham, UK

Re: "Unsupported detection protocol, switching and trying again"

Postby stevenbennett » Mon Aug 26, 2024 7:25 am

Just add the chip option then you won't get the warning message
e.g. esptool.py --chip esp32 --port COM4 --baud 115200 flash_id
or esptool.exe --chip esp32 --port COM4 --baud 115200 flash_id
Simples

Who is online

Users browsing this forum: No registered users and 153 guests