-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
espflash write-bin
not compatible with Secure Download mode
#726
Comments
For completeness, just to mention that I managed to convince the monitor to show logs when the chip is in secure DL mode by using: espflash monitor -b no-reset-no-sync --chip esp32s3 |
I hit this a while ago too and I think I just switched to esptool for the one device I accidentally enabled secure download mode on. For my future development, I added this to my
Just make sure the local changes never get committed to release. Although I think it's not so bad security-wise if they do. |
Sure, I have the exact same settings in my debug builds for development, but for release I actually do want secure DL mode, because it is, well, secure. And yes, |
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:
These 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 down
or with:
This ^^^ 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 (tryesptools tool get_security_info
) and (b) capable of writing to the flash (albeit with the default baud rate):The text was updated successfully, but these errors were encountered: