Thanks @cyberman54 for pointing out that it’s done!
I just tried it and it works! But we do need to add a build flag to get it enabled.
build_flags = -DBOARD_HAS_PSRAM
platform = https://github.com/platformio/platform-espressif32.git#feature/stage
framework = arduino
board = esp32dev
This worked, the ESP.getFreeHeap()
function reports over 4 MB of free ram which is expected (internal RAM + external RAM).
@ivankravets you might want to define a new board for esp32wrover. In this other thread you told people to use esp32dev but they will not get the RAM automatically.
For your reference, this is the commit that added support for that extra RAM in the esp32 arduino framework:
You can see that they edit the boards.txt file to pass the define flag:
esp32wrover.build.defines=-DBOARD_HAS_PSRAM