You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESP32-S2 supports the get_security_info cmd, but returns a struct without the chip_id and api_version fields (returns 12 instead of 20 bytes).
The legacy stub accounts for this with a variable SECURITY_INFO_BYTES size, but the rust flasher stub doesn't - returning 20 bytes with zeros instead of 12. This results in a wrong chip_id being detected (0).
If the flasher stub is left running (--after no_reset_stub) and you try to connect again, you get this:
Detecting chip type.../dev/cu.usbserial-150 failed to connect: Unexpected chip ID value 0. Failed to autodetect chip type.
The security information report also shows this, which is wrong: Chip ID: 0 API Version: 0
(Chip ID should be 2)
The text was updated successfully, but these errors were encountered:
dobairoland
changed the title
ESP32-S2: get_security_info returns more bytes than expected
ESP32-S2: get_security_info returns more bytes than expected (ESPTOOL-898)
Jul 29, 2024
The ESP32-S2 ROM GET_SECURITY_INFO
response does not contain chip_id and api_version fields.
Currently, the flasher stub just returns 0 and 0 for these, however
chip_id 0 is reserved for the ESP32.
This makes the stub behavior in line with the ROM.
Closesesp-rs#65
The ESP32-S2 ROM GET_SECURITY_INFO
response does not contain chip_id and api_version fields.
Currently, the flasher stub just returns 0 and 0 for these, however
chip_id 0 is reserved for the ESP32.
This makes the stub behavior in line with the ROM.
Closes#65
The ESP32-S2 supports the
get_security_info
cmd, but returns a struct without thechip_id
andapi_version
fields (returns 12 instead of 20 bytes).The legacy stub accounts for this with a variable
SECURITY_INFO_BYTES
size, but the rust flasher stub doesn't - returning 20 bytes with zeros instead of 12. This results in a wrongchip_id
being detected (0).If the flasher stub is left running (
--after no_reset_stub
) and you try to connect again, you get this:Detecting chip type.../dev/cu.usbserial-150 failed to connect: Unexpected chip ID value 0. Failed to autodetect chip type.
The security information report also shows this, which is wrong:
Chip ID: 0
API Version: 0
(Chip ID should be 2)
The text was updated successfully, but these errors were encountered: