Can't use full 8MB flash on ESP32S3

ESPS3 only 2Mb out of 8m flash available

HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
 - framework-espidf @ 3.40405.230623 (4.4.5) 
 - tool-cmake @ 3.16.4 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
Dependency Graph
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/esphome-web-927460/src/main.o
Linking .pioenvs/esphome-web-927460/firmware.elf
RAM:   [==        ]  15.3% (used 50144 bytes from 327680 bytes)
Flash: [=======   ]  72.0% (used 1321341 bytes from 1835008 bytes)

but PSRAM is all available

[10:34:28][C][psram:020]: PSRAM:
[10:34:28][C][psram:021]:   Available: YES
[10:34:28][C][psram:024]:   Size: 8191 KB

well it looks like it sees well the 8MB of Flash :wink: I would not trust the indication during flash although would be interesting to compile a sketch that needs more than 2Mb of Flash to see what happens :smiley:
PSRAM is different, it’s live memory for processes :wink:

suggest anything for such larger file, I can’t mange anything with esp-idf. best I got is 81% of 2Mb.

Perhaps add code for few random sensors (some complex ones that needs lot of code like the VOC/ambiance sensors perhaps ?

See this post: How to increase partition size (to use 16MB of flash instead of 4MB) - #3 by metsessantaset

You can define a board flash size the YAML.