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

aygh4266
Posts: 36
Joined: Mon Mar 04, 2024 10:33 am

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

Postby aygh4266 » Wed Apr 09, 2025 10:26 am

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.

Who is online

Users browsing this forum: No registered users and 4 guests