esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

xtaskcreate error (IDFGH-12716)

Open cyberumut opened this issue 10 months ago • 4 comments

Answers checklist.

  • [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

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

cyberumut avatar Apr 26 '24 19:04 cyberumut

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

Alvin1Zhang avatar Apr 27 '24 01:04 Alvin1Zhang

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.

ESP-Marius avatar Apr 28 '24 01:04 ESP-Marius

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

cyberumut avatar Apr 29 '24 12:04 cyberumut

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

ESP-Marius avatar Apr 30 '24 01:04 ESP-Marius

Marking this one as resolved, please reopen it if there is still any outstanding issues.

ESP-Marius avatar Aug 08 '24 04:08 ESP-Marius