ConPlatformio Configuration for EPS32 16 MBfiguratio

I’m using an ESP32-WROOM with 16MB and Visual Studio. I created a program that works correctly with the standard settings:

plotfomio.ini

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
board_build.partitions = default_16MB.csv

However, the program is expanding and I’m running out of space for downloads in SPIFFS. I purchased the ESP32 with 16MB, and when I create a program to print the flash size, it shows 16MB. But when I compile, it still shows:

PLATFORM: Espressif 32 (6.8.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

Even if I set board_build.partitions = default_16MB.csv, it still shows 4MB of flash.

Can you tell me how to compile it with 16MB, increasing both SPIFFS and the program areas?

This board definition has 4 MByte flash configured.

I don’t think that really matters though becauase the partition table will update the maximum size anyway. To make “16 MB Flash” appear in the “HARDWARE” output, you can just add

board_upload.flash_size = 16MB

This should not affect compiler output at all because it uses the partition table. So, you have already set up compilation to work with a 16MByte partition table (2x 6.25MB APP, 3.3MB SPIFFS, as per partition table)