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.
running out of memory allocation for tasks despite PSRAM of 8MB
Re: running out of memory allocation for tasks despite PSRAM of 8MB
The only suggestion that comes to mind is reviewing your menuconfig settings. There are various settings for PSRAM when it is enabled. The only other thing that comes to mind is a memory leak if RAM is getting consumed over time.
Regards,
Eric Gionet P.Tech.(Eng.), CIOTP, SMIEEE
Eric Gionet P.Tech.(Eng.), CIOTP, SMIEEE
Re: running out of memory allocation for tasks despite PSRAM of 8MB
I have created tasks with xCreateTaskPinnedToCoreWithCaps, allocated the Objects on the PSRAM using heap_caps_malloc() and static and global variables and objects using the macro EXT_RAM_BSS_ATTR.The only suggestion that comes to mind is reviewing your menuconfig settings. There are various settings for PSRAM when it is enabled. The only other thing that comes to mind is a memory leak if RAM is getting consumed over time.
Here is my menuconfig for PSRAM Settings:
- Attachments
-
- PSRAM.PNG (47.44 KiB) Viewed 973 times
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 4 guests