← index #8990PR #4987
Off-topic · high · value 3.742
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 · PULL REQUEST

Adding support for ESP32-D2WD (2MiB) for issue #4986

closedby zrecoreopened 2019-08-07updated 2019-09-10
port-esp32

See Issue #4986

This pull request attempts to support a custom flash user start address, custom flash storage partition size, and the ability to specify a partitions CSV file. By default, this setup still supports 4MiB as per usual, but if env variables are set, ESP32 chips with 2MiB built in are supported too.

Here are the custom values used to compile MicroPython for ESP32-D2WD with this code

# .envrc file

export ESPIDF="$HOME/esp-idf"
export FLASH_SIZE="2MB"
export FLASH_MODE="dio"
export FLASH_FREQ="40m"
export FLASH_USER_START=0x120000
export FLASH_STORAGE_PARTITION_SIZE=0xA0000
export PART_SRC="partitions-2MiB.csv"

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