← index #8990Issue #8100
Off-topic · high · value 3.516
QUERY · ISSUE

ESP32: Insecure flash encryption in esp32

openby AmirHmZzopened 2022-07-31updated 2025-10-04
enhancementport-esp32

Does Micropython currently supports ESP-IDF Flash Encryption? If yes is there any Micropython specific procedure to achieve that goal?

CANDIDATE · ISSUE

esp32c3 Flash Instructions Documented Incorrectly

closedby hansonapopened 2021-12-19updated 2022-02-02
port-esp32

The MicroPython.org esp32c3 and esp32c3-usb download pages appear to have incorrect instructions.

Necessary changes

  • The --chip flag should have a value of esp32c3.
  • The flash offset should be 0x0.
  • The bin file name should be updated to include c3 after esp32, for completeness.

Discussion

The symptom of the wrong flash offset was that after flashing, which appeared to be successful, I could not connect to the board with ampy, mpfshell, or rshell. I stumbled across this forum which had the answer. And indeed the bootloader documentation for the esp32c3 states that it should be 0x0.

Most people who use MicroPython on an esp32, if like myself, only use esptool to flash MicroPython have no concept of flash offsets and how to choose them so it would be good to fix this and maybe add a page to the MicroPython docs.

I would be happy to make these changes / pull request but did not see the website source in this repository.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied