Run a Pico RP2040 program completely from RAM

Hello,
I develop a project on a RP2040 custom board with:

platform = https://github.com/maxgerhardt/platform-raspberrypi.git
framework = arduino
board_build.core = earlephilhower

I currently use the decorator ‘__no_inline_not_in_flash_func’ with some functions to execute them from RAM.
I would like to run the complete program from RAM.
It seems that this can be done using a CMAKE build flag: cmake -DPICO_COPY_TO_RAM=1
Can this be done in PlarformIO using platformio.ini or any other method ?

Many thanks,

This was discussed a few years ago in https://github.com/earlephilhower/arduino-pico/discussions/766, but wasn’t further explored.

Thanks for the link. I’ll have a look. BR.