uxTaskGetStackHighWaterMark always returns 0 (zero)

psiphi75
Posts: 13
Joined: Thu May 04, 2017 4:45 am

uxTaskGetStackHighWaterMark always returns 0 (zero)

Postby psiphi75 » Mon Jun 12, 2017 1:47 am

When using `uxTaskGetStackHighWaterMark(NULL)` within a task, it always returns zero. Even with a very large stack.

Any ideas?

f.h-f.s.
Posts: 215
Joined: Thu Dec 08, 2016 2:53 pm

Re: uxTaskGetStackHighWaterMark always returns 0 (zero)

Postby f.h-f.s. » Thu Jul 06, 2017 9:22 am

check INCLUDE_uxTaskGetStackHighWaterMark in components/freertos/include/FreeRTOSConfig.h

psiphi75
Posts: 13
Joined: Thu May 04, 2017 4:45 am

Re: uxTaskGetStackHighWaterMark always returns 0 (zero)

Postby psiphi75 » Thu Jul 06, 2017 9:31 am

Thanks, in the end it was actually a bug in my own code. I should have commented on this earlier.

Who is online

Users browsing this forum: Baidu [Spider] and 78 guests