Tagged: CPU LOAD

HAL Library 19- CPU LOAD monitor for STM32Fxxx 6

HAL Library 19- CPU LOAD monitor for STM32Fxxx

CPU load monitor library is simple library, which counts number of sleeping cycles using WFI() instruction compared to working cycles in one second. Load variable is updated every 1 second to determinate how much your processor works. For that case, you have to always put your system to sleep mode when you don’t need it. It uses DWT counter in Cortex M4/M7 to measure cycle counters! Library Read more about new HAL libraries Features Measures CPU load. Load depends between...

All STM32 HAL libraries 106

All STM32 HAL libraries

In this section, I will write all libraries based on HAL drivers from ST. If you see this first time, make sure you read this post first about how structure of my libs looks like! License All my softwares are published under MIT license. This means that you are allow to modify, share and use my source and other stuff in personal or commercial use. If you modify source code, it has to stay under GNU GPL v3 license too. I...

CPU load monitor for STM32F4xx 0

CPU load monitor for STM32F4xx

I’ve been searching for a simple CPU load monitor on STM32F4xx device. Today, I’ve managed to get one very, very primitive CPU load monitor for these devices. Check library here. STM32F4xx have built-in DWT (Data Watchpoint and Trace unit) which has several timers there. 2 of them are cycle counter and sleep counter. The first counts number of CPU cycles and the second counts number of cycles where CPU was sleeping. It would be very easy to get CPU load,...