I am having a similar issue though realized a bit differently. I think Platform IO’s characterization of the ESP32 Pico Mini 2 chip maybe incorrect?
I can built my code but when it goes to load Platform IO reports code is too large for flash memory. The build is 1.3MB, yet the Pico Mini 2 has 8 MB of flash memory.
Has anybody been able to find a workaround?
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
Error: The program size (1360381 bytes) is greater than maximum allowed (1310720 bytes)
RAM: [= ] 14.6% (used 47688 bytes from 327680 bytes)
*** [checkprogsize] Explicit exit, status 1
Flash: [==========] 103.8% (used 1360381 bytes from 1310720 bytes)
=============================== [FAILED] Took 37.29 seconds ===============================
UPDATE: THIS POST FIXED ISSUE ~