AnsweredAssumed Answered

how to increase the correlation parameters and processing functions in the FreeRTOS Wireless UART demo application to show the Runtime items in the MCUXpresso IDE FreeRTOS Debug Task List View?

Question asked by limin Jia on Jan 20, 2018
Latest reply on Jan 30, 2018 by Carlos_Mendoza

in the MCUXpresso IDE FreeRTOS Debug Task List View,If you want to see Task runtime with percentage value. Both configUSE_TRACE_FACILITY and configGENERATE_RUN_TIME_STATS need to be set to 1 in the FreeRTOSConfig.h file.
I use the SDK_2.2_FRDM-KW41Z and Wireless UART(freeRTOS) is a BLE demo application,in the FreeRTOSConfig.h file, the configGENERATE_RUN_TIME_STATS default setting is 0, When this parameter is changed to 1.in the FreeRTOS.h file, There are the following statements:

 

#if ( configGENERATE_RUN_TIME_STATS == 1 )
 #ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
  #error If configGENERATE_RUN_TIME_STATS is defined then portCONFIGURE_TIMER_FOR_RUN_TIME_STATS must also be defined.  portCONFIGURE_TIMER_FOR_RUN_TIME_STATS should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base.
 #endif /* portCONFIGURE_TIMER_FOR_RUN_TIME_STATS */

 #ifndef portGET_RUN_TIME_COUNTER_VALUE
  #ifndef portALT_GET_RUN_TIME_COUNTER_VALUE
   #error If configGENERATE_RUN_TIME_STATS is defined then either portGET_RUN_TIME_COUNTER_VALUE or portALT_GET_RUN_TIME_COUNTER_VALUE must also be defined.  See the examples provided and the FreeRTOS web site for more information.
  #endif /* portALT_GET_RUN_TIME_COUNTER_VALUE */
 #endif /* portGET_RUN_TIME_COUNTER_VALUE */

#endif /* configGENERATE_RUN_TIME_STATS */

 

how to increase the correlation parameters and processing functions in the FreeRTOS Wireless UART demo application to show the Runtime items in the MCUXpresso IDE FreeRTOS Debug Task List View?

Outcomes