PIO vs Arduino IDE Flash size?

Hi All

I hoping someone can explain this to me, I working on a project that is growing very fast and I could run out of Flash so I’ve been doing some tests using Arduino IDE and Platform IO which I do like, same code used in both.

It look like Arduino IDE used less flash 1009266 bytes (77%) and PlatformIO used 1213585 bytes (92.6%).

However the last line in the Platform IO upload states 1213696 bytes (667534 compressed), so is Platform IO using 1213585 or 667534?

Thanks in advance

Brian

*** Arduino IDE ***

Sketch uses 1009266 bytes (77%) of program storage space. Maximum is 1310720 bytes.

Global variables use 62488 bytes (19%) of dynamic memory, leaving 265192 bytes for local variables. Maximum is 327680 bytes.

*** Platform IO ***

RAM: [== ] 20.5% (used 67280 bytes from 327680 bytes)

Flash: [========= ] 92.6% (used 1213585 bytes from 1310720 bytes)

…..

Wrote 1213696 bytes (667534 compressed) at 0x00010000 in 10.6 seconds (effective 919.6 kbit/s)...

Hash of data verified.

Leaving...

Hard resetting via RTS pin...

======================================

It uses 1213585 bytes. Compression is used for faster uploading only. Regarding file size difference with respect to Arduino IDE: you likely have different versions of framework in these two IDEs.

1 Like

Thanks for your reply, any idea how i check what framework I’m using on both so i can match them.?