Library 60- CPU load monitor for STM32F4xx devices

Yesterday, I’ve made a post about monitoring CPU load depending on CPU work and it’s sleep time using DWT counter. This post can be found here.

This post is now a library, set together from post about CPU load.

Library

Features

  • Measures CPU load. Load depends between sleep time and work time of CPU
  • CPU load is updated for every System core clock cycles. In other words, that is each 1 second
  • DWT counter used for measurements
  • Sleep mode which is measured can be wait for interrupt or wait for event

Dependencies

  • CMSIS
    • STM32F4xx
    • STM32F4xx PWR
    • STM32F4xx
  • TM
    • defines.h
    • TM LOWPOWER
    • TM GENERAL

Functions and enumerations

Example

Project is available on Github, download library below.

tilz0R

Owner of this site. Application engineer, currently employed by STMicroelectronics. Exploring latest technologies and owner of different libraries posted on Github.

You may also like...