running out of memory allocation for tasks despite PSRAM of 8MB
Posted: Tue Mar 18, 2025 1:37 pm
Hello everyone,
currently I am running out of memory allocation especially in the heap. I am using esp32s3 with 512KB internal RAM and 8MB external PSRAM.
Basically I created 4 tasks (UART, USB MSC Host, Bluetooth nimBLE and WiFi with Access point and https webserver)
I allocated all nimble, mbetls, and wifi memories on the PSRAM externally. It has been thousand times better but still crashes by mounting USB Device.
While I am using c++, I allocate all the instances dynamically using new placement directly on the PSRAM but still have issues with the RAM.
So I have a lot of memory on the PSRAM (about 7 MB). Is it possible to integrate the PSRAM with the internal RAM ? if not, what should I do, in order to run all tasks without any issues.
currently I am running out of memory allocation especially in the heap. I am using esp32s3 with 512KB internal RAM and 8MB external PSRAM.
Basically I created 4 tasks (UART, USB MSC Host, Bluetooth nimBLE and WiFi with Access point and https webserver)
I allocated all nimble, mbetls, and wifi memories on the PSRAM externally. It has been thousand times better but still crashes by mounting USB Device.
While I am using c++, I allocate all the instances dynamically using new placement directly on the PSRAM but still have issues with the RAM.
So I have a lot of memory on the PSRAM (about 7 MB). Is it possible to integrate the PSRAM with the internal RAM ? if not, what should I do, in order to run all tasks without any issues.