Closed li-shu-hang closed 1 year ago
Hello @li-shu-hang,
can you please give more information about the issue? I am sorry, but I am not sure I fully understand it:
1) Have you or your colleague activated any security features (secure boot, flash encryption) of the ESP? Have you burned any eFuses? 2) Has your colleague flashed the same exact binary twice or has it changed? Has it been signed? 3) You are referencing an older version of esptool. Which one is it?
It is not possible to brick the device without burning any eFuses. Also, if an encrypted bootloader is burned, it can be burned again and will correctly execute if its signature is verified (more info here).
Hello @radimkarnis Thank you very much for your reply. Now we are ready to use the latest version of esptool.py for burning, which meets our needs. In addition, I asked my colleague, who originally used idf release4.2, a tool integrated with esptool, before he found that using esptool in this tool, repeated burning of encrypted firmware would cause problems on the device, so he prevented the device from repeated burning and told me this conclusion.
@li-shu-hang thank you for the reply. I am glad this got resolved!
Yes, IDF v4.2 packs a quite outdated version of esptool. The recent versions of esptool are more mature in this regard.
Closing this issue.
Operating System
Windows
Esptool Version
esptool.py 4.6.2
Python Version
Python3.9.0
Full Esptool Command Line that Was Run
esptool.py --chip esp32 --port COM3 --baud 921600 write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader.bin 0xa000 partition-table.bin 0x20000 gl-s10-Blyott-producttest-v2_0_3.bin
Esptool Output
What is the Expected Behaviour?
The bootloader.bin file that needs to be burned is encrypted. If the previous version is burned twice, the device will become brick. However, with the latest version of esptool.py, the device can start normally after repeated burning of the encrypted bootloader.bin file, so it is a little confused. This encrypted bootloader should be in order not to let others brush the firmware twice, to protect the device from being changed, is this normal?
More Information
My colleague repeatedly burned this encrypted bootloader, and the device became bricked and could not connect to the serial port
Other Steps to Reproduce
None