Why is there no support for external SPIRAM for the Espressif ESP-WROVER-KIT default?
[platformio] src_dir = main lib_dir = components [env:esp-wrover-kit] platform = espressif32 board = esp-wrover-kit framework = espidf monitor_speed = 115200 board_build.partitions = partitions.csv build_flags = -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
this configuration does not work!
[platformio] src_dir = main lib_dir = components [env:esp-wrover-kit] platform = espressif32 board = esp-wrover-kit framework = espidf monitor_speed = 115200 board_build.partitions = partitions.csv build_flags = -D CONFIG_SPIRAM_SUPPORT=1
in this configuration, when compiling, so many errors appear that the question arises: why proudly announce support for ESP-WROVER-KIT, if there is not even a hint of support?
After two or three dozen attempts, correcting bugs by «trial and error», I still managed to compile the project and flash the device. External RAM has been decided.
I spent a huge amount of time and nerve cells on this.
A new PlatformIO update will be released and all my torment with compiling the project will resume.
It is very sad that support for the esp-idf framework in PlatformIO is far from perfekt.
P.S. Here is the working configuration. I hope this comes in handy.
build_flags = -D CONFIG_SPIRAM_SUPPORT=1 -D CONFIG_SUPPORT_STATIC_ALLOCATION=1 -D CONFIG_SPIRAM_BOOT_INIT=1 -D CONFIG_SPIRAM_USE_MALLOC=1 -D CONFIG_SPIRAM_TYPE_AUTO=1 -D CONFIG_SPIRAM_SIZE=-1 -D CONFIG_SPIRAM_SPEED_40M=1 -D CONFIG_SPIRAM_MEMTEST=1 -D CONFIG_SPIRAM_CACHE_WORKAROUND=1 -D CONFIG_SPIRAM_BANKSWITCH_ENABLE=1 -D CONFIG_SPIRAM_BANKSWITCH_RESERVE=4 -D CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192 -D CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST=1 -D CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=16384 -D CONFIG_D2WD_PSRAM_CLK_IO=9 -D CONFIG_D2WD_PSRAM_CS_IO=10 -D CONFIG_PICO_PSRAM_CS_IO=10 -D CONFIG_D0WD_PSRAM_CLK_IO=17 -D CONFIG_D0WD_PSRAM_CS_IO=16 -D CONFIG_SPIRAM_SPIWP_SD3_PIN=7