Different compiled flash size btw Arduino IDE and PIO!

Hey guys,
I started to use PIO with ESP32, but have a problem

when i compile a same project in Arduion IDE and PlatformIO, the flash used capacity is different for example in Arduino IDE , my program uses 25% of Flash but in PIO, that uses 30% of Flash capacity !!!
what’s the problem ?
Thanks :slight_smile:

Unfortunatly I have the same problem.
It compiles and upload in Arduino IDE but not in PIO because it says the memory needed is 1,5MB and the ESP32 has only 1,2MB, although I have a board = esp-wrover-kit with 4MB.
What am I doing wrong?
Thanks for your kind help.

Joaquim