Default flash set at 2MB

karunt
Posts: 93
Joined: Sat Apr 03, 2021 7:58 am

Default flash set at 2MB

Postby karunt » Mon Jan 23, 2023 4:46 pm

Any reason why (CONFIG_ESPTOOLPY_FLASHSIZE) for ESP32 is set to 2 MB by default in sdkconfig for most of the examples when ESP32 offers 4MB flash? My code is a bit larger than 2MB, so in order to flash it successfully, I had to change this setting to 4MB. Is there a risk to changing this setting to 4MB to match the full flash capacity of the chip? Could it possibly constrain some other aspect of the app or impact chip performance vs keeping this setting to something less than the chip's flash capacity?

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: Default flash set at 2MB

Postby mbratch » Mon Jan 23, 2023 6:09 pm

I have mine set to "4MB" and I don't have any issues. I must have changed it at the beginning of my project. I use various features of the ESP32 and haven't noticed any limitations or issues.

Who is online

Users browsing this forum: Baidu [Spider] and 99 guests