-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
esptool.py fails with error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 (micropython build) (ESPTOOL-951) #1028
Comments
Hi @littlegreenbean33, please try using the latest release of esptool 4.8.1. I believe that a2bdaa2 has already fixed this. |
@peterdragun Yes this works. Many thanks. If only I get this issue
Shall I go any further and reinstall all tools ? how should I go to get all necessary packages aligned ? Many Thanks |
apologies if I spammed the team. |
I assume that you are using ESP-IDF v5.2 or older. There is an outstanding issue there which prevents us from updating to the newest esptool version. It should be solved soon. The workaround is to edit (or remove) the esptool requirement in |
Thanks, my issue really is Micropython "recommends" certain versions of IDF. Building up the binary firmware is the last step, so not so much an inconvenience. I work in an industrial environment and changes on devices can harm people. So we need to lock down changes, confidentiality is less of an issue. Hence, I follow this path freezing changes in the device via encryption. |
|
following @dobairoland recommendation, things worked fine. I work with multiple version of IDF so it took me a while to set up script to dynamically alternate between environments and avoid all being locked at ~/.espressif |
Operating System
ubutu 20.04
Esptool Version
4.7
Python Version
3.10
Full Esptool Command Line that Was Run
esptool.py -p /dev/ttyUSB0 -b 460800 --force --before default_reset --after no_reset --chip esp32s3 write_flash --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 tmp/bootloader-enc.bin 0x8000 tmp/partition-table-enc.bin 0x10000 tmp/micropython-enc.bin Traceback (most recent call last):
Esptool Output
What is the Expected Behaviour?
I ha externally generated key for flash encryption. In developer mode all goes smooth. In release mode bootloader and partition are fine ( after externally encrypted before sending to chip with esptool). However app.image ( micropython custom build) fails at flashing with esptool.py
More Information
No response
Other Steps to Reproduce
Crashes on micropython-enc.bin in all executions
The text was updated successfully, but these errors were encountered: