Page 1 of 1

wifi task consumes a lot of internal RAM. How to allcoate the task to PSRAM

Posted: Wed Apr 09, 2025 10:26 am
by aygh4266
Hello everyone,

any advice will be appreciated.How can I allocate the wifi task to PSRAM, since it consumes nearly 90KB of the internal RAM, so other tasks can't be created correctly.

I tried to find the implementation of esp_wifi_start and change the `xTaskCreatePinnedToCore` to `xTaskCreatePinnedToCoreWithCaps` manually but I didn't find the implementaiton of the API.

Background: I'm running out of the internal memory, tried to allocate all static and global variable to bss. Other Objects are allocated dynamically with `heap_caps_malloc`. However wifi still consumes a lot of RAM and I still have 7 MB PSRAM free.

Any other advices will be appreciated.