Wifi Power Manager Stack Overflow

lil_spli
Posts: 18
Joined: Wed May 31, 2017 9:56 am

Wifi Power Manager Stack Overflow

Postby lil_spli » Mon Mar 12, 2018 2:07 pm

Hi

I'm getting the following stack overflow occasionally when using Wifi on my app.

Code: Select all

***ERROR*** A stack overflow in task pmT has been detected.
abort() was called at PC 0x4008f0d4 on core 0
0x4008f0d4: vApplicationStackOverflowHook at /Users/simon/esp/esp-idf/components/esp32/./panic.c:648


Backtrace: 0x4008ef63:0x3ffe1cd0 0x4008f0bb:0x3ffe1cf0 0x4008f0d4:0x3ffe1d10 0x4008cd18:0x3ffe1d30 0x4008e2e4:0x3ffe1d60 0x4008e29a:0xeecd32ca
0x4008ef63: invoke_abort at /Users/simon/esp/esp-idf/components/esp32/./panic.c:648

0x4008f0bb: abort at /Users/simon/esp/esp-idf/components/esp32/./panic.c:648

0x4008f0d4: vApplicationStackOverflowHook at /Users/simon/esp/esp-idf/components/esp32/./panic.c:648

0x4008cd18: vTaskSwitchContext at /Users/simon/esp/esp-idf/components/freertos/./tasks.c:3529

0x4008e2e4: _frxt_dispatch at /Users/simon/esp/esp-idf/components/freertos/./portasm.S:406

0x4008e29a: _frxt_int_exit at /Users/simon/esp/esp-idf/components/freertos/./portasm.S:206

I don't see a way to configure stack size for that task. Any way I can find out why this is happening and how to stop it?

Thanks


Simon

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

Re: Wifi Power Manager Stack Overflow

Postby ESP_Sprite » Tue Mar 13, 2018 2:57 am

Hmm, with that backtrace, it actually smells like some other task overflowed the stack instead; FreeRTOS is trying to switch either to it or from it to the power manager task and crashes halfway the processs. You might want to see if allocating more stack to the task created just before or after WiFi startup solves the issue.

Who is online

Users browsing this forum: No registered users and 54 guests