How to see the Embedded flash ram of my wemos lolin s2 mini?

Hello,

Here are the informations given at build time:

Chip is ESP32-S2FNR2 (revision v0.0)
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V2 

The chip contains 2MB of PSRAM.

But I cannot see it.

I ran menuconfig to enable the SPIRAM here is the config file:

#
# ESP PSRAM
#
CONFIG_SPIRAM=y

#
# SPI RAM config
#
CONFIG_SPIRAM_MODE_QUAD=y
CONFIG_SPIRAM_TYPE_AUTO=y
# CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
CONFIG_SPIRAM_CLK_IO=30
CONFIG_SPIRAM_CS_IO=26
# CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set
# CONFIG_SPIRAM_RODATA is not set
# CONFIG_SPIRAM_SPEED_80M is not set
CONFIG_SPIRAM_SPEED_40M=y
# CONFIG_SPIRAM_SPEED_26M is not set
# CONFIG_SPIRAM_SPEED_20M is not set
CONFIG_SPIRAM_SPEED=40
CONFIG_SPIRAM_BOOT_INIT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
# CONFIG_SPIRAM_USE_MEMMAP is not set
CONFIG_SPIRAM_USE_CAPS_ALLOC=y
# CONFIG_SPIRAM_USE_MALLOC is not set
CONFIG_SPIRAM_MEMTEST=y
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set
# end of SPI RAM config
# end of ESP PSRAM

If I do that the boot does not succeed.
Maybe there are some messages at boot time but I cannot see them as the monitor takes a long time to start.

Do I have to add any flag in the menuconfig ?
Here is what I have by now:

[env:lolin_s2_mini]
platform = espressif32
board = lolin_s2_mini
framework = espidf
monitor_speed = 115200
upload_speed = 921600
monitor_raw = yes

My idea is to use the ram by

char *buf = (char *)heap_caps_malloc(bufsize, MALLOC_CAP_SPIRAM);

Do you have an idea of what is wrong is my setup ?
CLK_IO on 30 and CS_IO=26 are provided by the setup. I didn’t change and there is nothing connected on these IOs.

I should say that I did configure a PSRAM on one ESP32 (ESP32-D0WDQ6 rev1) and it was working nicely. I don’t see what is wrong with this ESP32-S2.

Thanks a lot for your help
Sha