← index #8706Issue #3508
Off-topic · high · value 1.641
QUERY · ISSUE

Flash encryption on esp32

openby MauroDiamantinoopened 2022-05-28updated 2025-03-20
enhancement

Hello, have you implemented a way to allow a developer to compile micropython with flash encryption enabled? is it possible to modify sdkconfig to enable flash encryption? which is the best way to do that?

CANDIDATE · ISSUE

Support for Dual Out flash mode (Support for ESP8285)

closedby maribuopened 2017-12-20updated 2018-05-08

Hi,

the ESP8285 is basically and ESP8266 with 1MiB of flash integrated. Thus, the MicroPython ESP8266 port should support it out of the box. Sadly, the integrated flash can only be used in Dual Out mode according to its data sheet. This behavior is also observed in the Tasmota firmware.

The good thing about DOUT flash mode is, that it seems to be supported by every ESP82* device and flash combination, according to the Tasmota Wiki. Sadly, it seems to be also the slowest.

So it would be nice to be able to configure the build to use a specific flash mode. The FLASH_MODE variable in the Makefile is only used in the deploy target so far. (By the way, recent versions of the esptool don't provide the --flash_mode= parameter any more.) Maybe this variable could be used to control which flash mode micropython is using?

Kind regards,
Marian


Update: esptool still supports --flash_mode, it is just not listed when running esptool.py --help. Running esptool.py write_flash --help lists it.

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