how to use xTaskCreatePinnedToCore?

mazorsk
Posts: 8
Joined: Mon Aug 24, 2020 1:49 pm

how to use xTaskCreatePinnedToCore?

Postby mazorsk » Sun Aug 30, 2020 8:10 pm

calling it with stack depth of 1 - 2048 causes:
***ERROR*** A stack overflow in task atask has been detected.

calling it with stack depth of 2048 - some_high_value causes:
abort() was called at PC 0x400874b7 on core 0

what can i do to make you help me with this?
i am trying to do a patch over a patch (over a patch) since i cannot seem to read the data returning from an http request...
thanks in advance.

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: how to use xTaskCreatePinnedToCore?

Postby ESP_Sprite » Sun Aug 30, 2020 8:58 pm

The stack overflow is exactly what it sounds like. It's more likely that the abort() is something else, but without seeing your code or a backtrace, it's impossible to know what it was.

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: how to use xTaskCreatePinnedToCore?

Postby chegewara » Mon Aug 31, 2020 10:01 am

Its probably not the case, but do you have task in infinite loop or does it end with vTaskDelete? Task cant exit.

Who is online

Users browsing this forum: No registered users and 62 guests