Espressif ESP32-S2 Programming Manual page 1163

Table of Contents

Advertisement

Chapter 2. API Reference
If enabled, this will include an extra column when vTaskList is called to display the CoreID the task is
pinned to (0,1) or -1 if not pinned.
Default value:
• No (disabled) if
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS
Enable FreeRTOS to collect run time stats
Found in:
Component config
If enabled, configGENERATE_RUN_TIME_STATS will be defined as 1 in FreeRTOS. This will al-
low FreeRTOS to collect information regarding the usage of processor time amongst FreeRTOS tasks.
Run time stats are generated using either the ESP Timer or the CPU Clock as the clock source (Note
that run time stats are only valid until the clock source overflows). The function vTaskGetRunTimeS-
tats() will also be available if FREERTOS_USE_STATS_FORMATTING_FUNCTIONS and FREER-
TOS_USE_TRACE_FACILITY are enabled. vTaskGetRunTimeStats() will display the run time of
each task as a % of the total run time of all CPUs (task run time / no of CPUs) / (total run time / 100 )
Default value:
• No (disabled)
CONFIG_FREERTOS_RUN_TIME_STATS_CLK
Choose the clock source for run time stats
Found in:
Component config
Choose the clock source for FreeRTOS run time stats. Options are CPU0's CPU Clock or the ESP
Timer. Both clock sources are 32 bits. The CPU Clock can run at a higher frequency hence provide a
finer resolution but will overflow much quicker. Note that run time stats are only valid until the clock
source overflows.
Available options:
• Use ESP TIMER for run time stats (FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER)
ESP Timer will be used as the clock source for FreeRTOS run time stats. The ESP Timer
runs at a frequency of 1MHz regardless of Dynamic Frequency Scaling. Therefore the ESP
Timer will overflow in approximately 4290 seconds.
• Use CPU Clock for run time stats (FREERTOS_RUN_TIME_STATS_USING_CPU_CLK)
CPU Clock will be used as the clock source for the generation of run time stats. The CPU
Clock has a frequency dependent on ESP32_DEFAULT_CPU_FREQ_MHZ and Dynamic
Frequency Scaling (DFS). Therefore the CPU Clock frequency can fluctuate between 80 to
240MHz. Run time stats generated using the CPU Clock represents the number of CPU
cycles each task is allocated and DOES NOT reflect the amount of time each task runs for
(as CPU clock frequency can change). If the CPU clock consistently runs at the maximum
frequency of 240MHz, it will overflow in approximately 17 seconds.
CONFIG_FREERTOS_USE_TICKLESS_IDLE
Tickless idle support
Found in:
Component config
If power management support is enabled, FreeRTOS will be able to put the system into light sleep
mode when no tasks need to run for a number of ticks. This number can be set using FREER-
TOS_IDLE_TIME_BEFORE_SLEEP option. This feature is also known as "automatic light sleep"
.
Note that timers created using esp_timer APIs may prevent the system from entering sleep mode,
even when no tasks need to run.
"skip_unhandled_events"option as true.
Espressif Systems
CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS
>
FreeRTOS
>
FreeRTOS
>
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS
>
FreeRTOS
To skip unnecessary wake-up initialize a timer with the
1152
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF