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.
Enabling FreeRTOS configUSE_TRACE_FACILITY
Enabling FreeRTOS configUSE_TRACE_FACILITY
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Enabling FreeRTOS configUSE_TRACE_FACILITY
Hi kolban,
Good to hear it's working. Please let us know if you run into any unexpected issues or not.
Angus
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