ESP32 Program memory actual vs. reported

I have a doit devkit V1 and am running the NTP example. It runs fine, but there are other functions I would like to implement. on compiling the summary message is Sketch uses 917893 bytes (70%) of program storage space. Maximum is 1310720 bytes. while the physical program flash in the ESP is 4,194,304 so the IDE (V2.32) is seeing less than a third of the program flash. Can someone explain this discrepancy?

1 Like

The IDE does not "see" the flash size, you have to select the correct value from the Tools menu.

2 Likes

Memory can be partitioned in various ways. Select from the appropriate ones for your board.

2 Likes

@lovedayt Changing the partition scheme will adjust the balance of Application space/SPIFFS/FATFS/OTA.

Default is 1.2MB. app / 1.5MB SPIFFS

The option is selected from the menu bar under Tools -> Partition Scheme:

The option is not available for the DOIT Devkit V1 but if you change your board selection to ESP32 Dev Module, this will work for your device, the Partition Scheme option should then be visible under Tools.

1 Like

Thanks! That makes sense. I'm just doing an embedded control project so SPIFFS is not needed.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.