ok..
https://github.com/espressif/esp-idf/bl ... ks.c#L3987
Code: Select all
#if ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) )
so where we set this config in the menuconfig ?
https://github.com/espressif/esp-idf/bl ... sk.h#L1360
we have to set manual?
Code: Select all
#define configGENERATE_RUN_TIME_STATS 1
mhm..
C:/eMbeddedHome2017/CLK_erzeuger/hello_world/main/hello_world_main.c:23:0: warning: "configGENERATE_RUN_TIME_STATS" redefined
#define configGENERATE_RUN_TIME_STATS 1
^
In file included from C:/eMbeddedHome2017/CLK_erzeuger/hello_world/main/hello_world_main.c:10:0:
C:/idf/1970_142_23/components/freertos/include/freertos/FreeRTOS.h:622:0: note: this is the location of the previous definition
#define configGENERATE_RUN_TIME_STATS 0
^
further test:
Code: Select all
// #define configGENERATE_RUN_TIME_STATS 1
#ifdef configGENERATE_RUN_TIME_STATS
#undef configGENERATE_RUN_TIME_STATS
#define configGENERATE_RUN_TIME_STATS 1
#endif
helps not
edit :
https://github.com/espressif/esp-idf/bl ... TOS.h#L620
Code: Select all
#ifndef configGENERATE_RUN_TIME_STATS
#define configGENERATE_RUN_TIME_STATS 1 // test rudi .orig is 0
#endif
error
Code: Select all
#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 */
https://github.com/espressif/esp-idf/bl ... TOS.h#L638
Code: Select all
#ifndef portCONFIGURE_TIMER_FOR_RUN_TIME_STATS
#define PortCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
#endif
next step?
RTFM
http://www.freertos.org/rtos-run-time-stats.html
we need to create 2 macros
portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
portGET_RUN_TIME_COUNTER_VALUE()
best wishes
rudi
edit:
seems to be a weekend work
here are examples from other cpu's
http://www.freertos.org/Free-RTOS-For-N ... C17xx.html
http://www.freertos.org/portLM3Sxxxx_Eclipse.html
so perhabs
the best will be we create for this an ESP32 example too?