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?

cancel
Showing results for 
Search instead for 
Did you mean: 

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?

206 Views
Contributor III

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?

0 Kudos
1 Reply

7 Views
NXP Employee
NXP Employee

Hi Limin Jia,

You can find more information about MCUXpresso and FreeRTOS Thread aware debugging on the following document:

https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_FreeRTOS_Debug_Guide.pdf 


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos