MCU load calculation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCU load calculation

100 Views
chetan98
Contributor II

Hello Nxp team 

I am using Kw45 board using eatt central SDK and I am working with wireless example connecting and printing data in uart I want to calculate MCU load and idle task time and busy time for MCU can NXP share some reference document or way to calculate MCU load.

Thanks and regards

Chetan

Labels (1)
0 Kudos
Reply
1 Reply

76 Views
ErichStyger
Specialist I

If you are using FreeRTOS: it has built-in performance analysis with information about the CPU load (without the interrupts), see https://mcuoneclipse.com/2018/02/25/performance-and-runtime-analysis-with-freertos/ and https://mcuoneclipse.com/2019/12/31/implementing-freertos-performance-counters-on-arm-cortex-m/ 

Other than that, you could use SystemView: https://mcuoneclipse.com/2015/11/16/segger-systemview-realtime-analysis-and-visualization-for-freert... 

I hope this helps,

Erich

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2248391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCU%20load%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Nxp%20team%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20Kw45%20board%20using%20eatt%20central%20SDK%20and%20I%20am%20working%20with%20wireless%20example%20connecting%20and%20printing%20data%20in%20uart%20I%20want%20to%20calculate%20MCU%20load%20and%20idle%20task%20time%20and%20busy%20time%20for%20MCU%20can%20NXP%20share%20some%20reference%20document%20or%20way%20to%20calculate%20MCU%20load.%3C%2FP%3E%3CP%3EThanks%20and%20regards%3C%2FP%3E%3CP%3EChetan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2248391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EFreedom%20Development%20Platform%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2248460%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCU%20load%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248460%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20you%20are%20using%20FreeRTOS%3A%20it%20has%20built-in%20performance%20analysis%20with%20information%20about%20the%20CPU%20load%20(without%20the%20interrupts)%2C%20see%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmcuoneclipse.com%2F2018%2F02%2F25%2Fperformance-and-runtime-analysis-with-freertos%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuoneclipse.com%2F2018%2F02%2F25%2Fperformance-and-runtime-analysis-with-freertos%2F%3C%2FA%3E%26nbsp%3Band%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmcuoneclipse.com%2F2019%2F12%2F31%2Fimplementing-freertos-performance-counters-on-arm-cortex-m%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuoneclipse.com%2F2019%2F12%2F31%2Fimplementing-freertos-performance-counters-on-arm-cortex-m%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOther%20than%20that%2C%20you%20could%20use%20SystemView%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmcuoneclipse.com%2F2015%2F11%2F16%2Fsegger-systemview-realtime-analysis-and-visualization-for-freertos%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuoneclipse.com%2F2015%2F11%2F16%2Fsegger-systemview-realtime-analysis-and-visualization-for-freertos%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps%2C%3C%2FP%3E%3CP%3EErich%3C%2FP%3E%3C%2FLINGO-BODY%3E