Files
micropython/ports/esp32/boards/sdkconfig.riscv
Angus Gratton 5b98126c21 esp32/boards: Reduce flash usage of ESP32-C6 boards.
Reduces ESP32_GENERIC_C6 application flash size from 2024432 to
1813216 (206KB smaller).

Also has benefit of reducing D/IRAM size, increasing free memory at
runtime (167187 to 148584, -18603 bytes).

Most of this savings comes from building with -Os instead of -O2,
but about 10KB comes from using the SPI flash functions from the ROM.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2025-08-29 13:35:48 +10:00

4 lines
145 B
Plaintext

# ESP RISC-V binary sizes are generally larger than Xtensa ones,
# so switch to size optimization by default
CONFIG_COMPILER_OPTIMIZATION_SIZE=y