Question
Verification of CPU Load
Posted on November 05, 2015 at 16:48
Hi,
I try to measure the CPU load of my STM32F429I-Discovery board. I tried the approach described onhttp://stm32f4-discovery.com/2015/05/cpu-load-monitor-for-stm32f4xx/
. This shows me a CPU utilization of 99% in ''work mode'' and a CPU utilization of 29% in ''idle mode''. In ''work mode'' the while-loop handles a digital signal processing task and in ''idle mode'' the while-loop is empty. I doubt that the calculated values by this approach are correct, that's why I want to verify the values with another approach. Although I have some interrupts (ADC and DMA), the value of 29% seems way too high. Unfortunately I do not know, which approach is reliable. Is there a way to measure the CPU load using Keil uVision's Debugger? Or how do I toggle a pin, when changing from work to sleep mode? I haven't found any sample code. I do not use RTOS, that's why the approach in/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F4%20Processor%20Load&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=661
in this forum, does not apply. Thanks for your help in advance. null