espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.29k stars 7.2k forks source link

ESP32 with multiples flash memory (IDFGH-11334) #12482

Open PabloGarciaJaen opened 10 months ago

PabloGarciaJaen commented 10 months ago

Answers checklist.

General issue report

Hello,

I am developing and ESP32 with 2 memory flash. I want to upload a "bootloader" code in one of them and the main code in the other one. The first memory, at one point of its code, it will indicate that the ESP32 must jump to the other flash to continue with the code.

Is this possible? Is there any example?.

Thanks

igrr commented 10 months ago

No, this is not supported in ESP-IDF, all the executable code has to be in one flash chip.

(Technically, this is possible in ESP32 — some code could be added to the 2nd stage bootloader to remap the GPIOs to another SPI flash chip. But this is not something that IDF supports. You can try to do it yourself, following some comments in https://github.com/espressif/esp-idf/issues/1205)