uxTaskGetStackHighWaterMark causing reboot

Async_Awayt
Posts: 14
Joined: Sun Feb 19, 2017 8:04 pm

uxTaskGetStackHighWaterMark causing reboot

Postby Async_Awayt » Thu Apr 20, 2017 12:33 pm

Hi,

I am trying to get a better understanding of stacksizes needed for different programs so I decided to try the uxTaskGetStackHighWaterMark() API function. Unfortunately I get:

Code: Select all

Untested FreeRTOS function uxTaskGetStackHighWaterMark
/home/volle/esp/esp-idf/components/freertos/./tasks.c:3734 (uxTaskGetStackHighWaterMark)- assert failed!
abort() was called at PC 0x40083de6 on core 0
Guru Meditation Error: Core  0 panic'ed (abort)
This is the way I am trying to use it:

Code: Select all

void vTaskGPIO(void *pvParameters)
    {
    UBaseType_t uxHighWaterMark;
        uxHighWaterMark = uxTaskGetStackHighWaterMark(NULL);
        ...
Any ideas what I am doing wrong?


Async_Awayt
Posts: 14
Joined: Sun Feb 19, 2017 8:04 pm

Re: uxTaskGetStackHighWaterMark causing reboot

Postby Async_Awayt » Thu Apr 20, 2017 3:15 pm


Who is online

Users browsing this forum: Bing [Bot] and 223 guests