Difference between revisions of "STM32 FreeRTOS Statistics"

From Stm32World Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
[[File:96 MHz Timer Clock.png|1000px]]
 
[[File:96 MHz Timer Clock.png|1000px]]
  
[[File:Timer for statistics.png|600px]]
+
In other words, the APB1 Timer Clock is running at 96 MHz.  Configuring the timer with a counter period of 959 and no prescaler will result in an interrupt frequency of 100 kHz - or 100 interrupts every millisecond.
  
First step is to enable the statistics in CubeMX:
+
[[File:Timer for statistics.png|500px]]
 +
 
 +
The final step is to enable the statistics in the FreeRTOS section of CubeMX:
  
 
[[File:CubeMX FreeRTOS Statistics Enabled.png|400px]]
 
[[File:CubeMX FreeRTOS Statistics Enabled.png|400px]]

Revision as of 01:48, 18 October 2021


First step is to enable a timer. The clock configuration is like this:

96 MHz Timer Clock.png

In other words, the APB1 Timer Clock is running at 96 MHz. Configuring the timer with a counter period of 959 and no prescaler will result in an interrupt frequency of 100 kHz - or 100 interrupts every millisecond.

Timer for statistics.png

The final step is to enable the statistics in the FreeRTOS section of CubeMX:

CubeMX FreeRTOS Statistics Enabled.png