ESP32 4MB and 8MB Binary Compatibility
Posted: Wed Jun 16, 2021 3:49 pm
Hi All,
I would like to enquire if there are any software changes required when upgrading the flash size of an ESP32 module. In my case, when upgrading from an ESP32-WROOM-32E 4MB to the 8MB type of the same module.
I am aware of the SDK config option to set the flash size "CONFIG_ESPTOOLPY_FLASHSIZE" as shown here:
https://docs.espressif.com/projects/esp ... -flashsize
This option is currently set in my software to 4MB. However, if I want to avoid rebuilding the binary when upgrading to 8MB, is there any effect I should be aware of if the SDK config option is left at 4MB and that binary is flashed on the 8MB version?
And, if I did rebuild the software for the 8MB option would this affect the bootloader?
Also, considering this SDK config option "CONFIG_ESPTOOLPY_FLASHSIZE_DETECT":
https://docs.espressif.com/projects/esp ... ize-detect
Does setting this option to yes allow the software to be compatible across modules of ESP32 varying flash sizes?
Appreciate any thoughts or advice on this. Thanks.
I would like to enquire if there are any software changes required when upgrading the flash size of an ESP32 module. In my case, when upgrading from an ESP32-WROOM-32E 4MB to the 8MB type of the same module.
I am aware of the SDK config option to set the flash size "CONFIG_ESPTOOLPY_FLASHSIZE" as shown here:
https://docs.espressif.com/projects/esp ... -flashsize
This option is currently set in my software to 4MB. However, if I want to avoid rebuilding the binary when upgrading to 8MB, is there any effect I should be aware of if the SDK config option is left at 4MB and that binary is flashed on the 8MB version?
And, if I did rebuild the software for the 8MB option would this affect the bootloader?
Also, considering this SDK config option "CONFIG_ESPTOOLPY_FLASHSIZE_DETECT":
https://docs.espressif.com/projects/esp ... ize-detect
Does setting this option to yes allow the software to be compatible across modules of ESP32 varying flash sizes?
Appreciate any thoughts or advice on this. Thanks.