Enabling FreeRTOS configUSE_TRACE_FACILITY

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Enabling FreeRTOS configUSE_TRACE_FACILITY

Postby kolban » Sun Dec 18, 2016 8:16 pm

I was wanting to use the FreeRTOS function called "uxTaskGetSystemState" which can be found documented here:

http://www.freertos.org/uxTaskGetSystemState.html

The docs say that this is only available if "configUSE_TRACE_FACILITY" is set to "1" in the "FreeRTOSConfig.h" file. I checked the value supplied with ESP-IDF and it appears to be set to 0. I couldn't see an obvious over-ride or mapping in "make menuconfig". And now we get to the body of the question ...

Can we enable "configUSE_TRACE_FACILITY" in ESP-IDF? If yes, what are the implications? If yes, what is the suggested mechanism? (eg. edit the ESP-IDF file called "freeRTOSConfig.h"?

Later ...
I edited "freeRTOSConfig.h" and set "configUSE_TRACE_FACILITY=1" to test. When I clean rebuilt everything and called "uxTaskGetSystemState" it asserted because of a check that "untested FreeRTOS functions should halt". This is over-ridable in the "make menuconfig" settings. I over-rode that and ran a test. Initial sniffs show that it "seems to work" ... but there might be dragons.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Enabling FreeRTOS configUSE_TRACE_FACILITY

Postby ESP_Angus » Mon Dec 19, 2016 3:22 am

Hi kolban,

Good to hear it's working. Please let us know if you run into any unexpected issues or not.

Angus

Who is online

Users browsing this forum: MSN [Bot] and 195 guests