QUERY · ISSUE
ESP32: Insecure flash encryption in esp32
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
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"