espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.57k stars 7.02k forks source link

xtaskcreate error (IDFGH-12716) #13701

Open cyberumut opened 2 weeks ago

cyberumut commented 2 weeks ago

Answers checklist.

General issue report

WhatsApp Image 2024-04-26 at 15 10 14_29554fc5

every time I try to start a task I get an insufficient memory error I have enough memory space as shown in the picture 4.7MB PSRAM 263BYTE INTERNAL RAM

Alvin1Zhang commented 2 weeks ago

Would you please help share more details as per the template? Thanks.

ESP-Marius commented 2 weeks ago

Since PSRAM memory comes with some restrictions, task stacks by default allocate from internal memory. But it is possible provide a PSRAM stack manually with xTaskCreateStatic if CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY is enabled.

cyberumut commented 2 weeks ago

Since PSRAM memory comes with some restrictions, task stacks by default allocate from internal memory. But it is possible provide a PSRAM stack manually with xTaskCreateStatic if CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY is enabled.

yes already enabled

ESP-Marius commented 2 weeks ago

yes already enabled

As I said:

Since PSRAM memory comes with some restrictions, task stacks by default allocate from internal memory. But it is possible provide a PSRAM stack manually with xTaskCreateStatic