PlatformIO Community

ESP32-IDF Program size


#1

I’m so confused on the subject, many googles, makes me even more confused
I got a simple ESP32-idf project

when I build:

PLATFORM: Espressif 32 > Espressif ESP32 Dev Module
SYSTEM: ESP32 240MHz 288KB RAM (1.25MB Flash)

DATA: [== ] 17.0% (used 50052 bytes from 294912 bytes)
PROGRAM: [========= ] 88.7% (used 930385 bytes from 1048576 bytes)

now I ASSUME its using the basic partition table
(how one knows, I have no idea)

but my program isn’t very big… is there a way to use more program space?

I thought the module using the WROOM32 has 4mb of total space
I asked the chip it says: 4MB external flash
this is showing me 1M of PROGRAM

the partitions_singleapp.csv I know looks like:
and when I add all that up in my head its only 1.7M

Name, Type, SubType, Offset, Size, Flags
Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 1M,

do I just need to do a custom partition?
do I need to edit/create my own board file?
will I need to manually edit sdkconfig.h?

help… unconfused me
thanks
mitch


#2

http://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables


#3

I read that… I need some more handholding…
I asked a few specific questions, could you answer them?
making a custom partition is meaningless if I don’t really have anymore flash space
do I just need to do a custom partition? (GUESS the answer is yes)
do I need to edit/create my own board file?
will I need to manually edit sdkconfig.h? (as the name of the partition table file is in there)


#4

ok… so I made a custom partition, and only changed 1 thing the 1M for app size to 2M
got this now

PROGRAM: [==== ] 44.4% (used 930565 bytes from 2097152 bytes)

still confused how much flash I got, chip says 4m, does that mean its all available
or does the system use any of it, I understand the NVS section, not sure exactly what phy is
I assume some info from BT and WIFI connections

mitch


#5

Should be fixed in the latest release. Please $ pio update.


#6

Hello @ivankravets ,

I also have the same question as @mitchjs, I’m using the latest configuration and I also have 1 MB of program size by default. What did you changed/fix in July’s release?


#7

What is your platformio.ini and partition table?


#8

For the reason of this question, it was the default coming when you create a project which use ESP-IDF Framework.


#9

See http://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables


#10

Yes, I’m aware about this link but as @mitchjs and I said, by default the code size area of memory comes configured for 1 MB which is too low by a default program for ESP32. You mentioned on July '18 " Should be fixed in the latest release. Please $ pio update.", my understanding is that something changed on the default partition table, isn’t it?