-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Labels
status:in-progressThis task is currently being worked onThis task is currently being worked on
Description
Once Secure Download mode is enabled on the chip, no matter what I do I can't force the chip into writing a binary image with espflash.
Some commands I tried:
espflash write-bin -b no-reset-no-sync --chip esp32s3 0x10000 factory.bin
espflash write-bin -b no-reset-no-sync --chip esp32s3 0x10000 factory.bin
espflash write-bin -b no-sync --chip esp32s3 0x10000 factory.bin
espflash write-bin -b no-reset --chip esp32s3 0x10000 factory.bin
espflash write-bin -b usb-reset --chip esp32s3 0x10000 factory.binThese fail either with:
Error: espflash::connection_failed
× Error while connecting to device
╰─▶ Failed to connect to the device
help: Ensure that the device is connected and the reset and boot pins are not being held downor with:
Error: espflash::timeout
× Error while connecting to device
╰─▶ Timeout while running ReadReg commandThis ^^^ failure mode is interesting, because it seems espflash is capable of setting the chip in download mode after all (with some reset sequences), but then (I'm speculating) it tries to read (some?) register, which might not be supported in secure DL mode.
=========
esptool
In contrast, esptool (a) is capable to detect that the chip is in Security Download mode (try esptools tool get_security_info) and (b) capable of writing to the flash (albeit with the default baud rate):
esptools tool write_flash 0x10000 factory.bin --forceMetadata
Metadata
Assignees
Labels
status:in-progressThis task is currently being worked onThis task is currently being worked on
Type
Projects
Status
Todo