Measure CPU Load in percentage

조회 수: 6 (최근 30일)
Akshaya
Akshaya 2023년 10월 19일
댓글: Akshaya 2023년 10월 26일
Hello,
I have converted simulink model to C code using Embedded Coder. Now, I would like to measure the CPU Load consumed for my software after flashing the code onto Aurix TC4X controller.
Do you have any leads that I can follow to achieve this task?
Thanks in advance!

답변 (1개)

Dheeraj
Dheeraj 2023년 10월 26일
Hi,
I understand you’re looking for ways to measure the CPU load consumed for your software loaded onto Aurix TC4X controller, currently there is no way to measure your CPU stats.
You could use 3rd party tools like Lauterbach TRACE32 debugger to measure CPU load. You will need to connect the microcontroller to the debugger. Once the microcontroller is connected to the debugger, you can start the CPU load measurement. Once you have stopped the CPU load measurement, you can read the results from the debugger.
You could go through the link below for better insights.
Hope this helps.
  댓글 수: 1
Akshaya
Akshaya 2023년 10월 26일
Hello @Dheeraj,
Thank you for your repsonse. However, I would like to mention that there is no OS currently flashed onto the controller ie., I am using it as a bare metal with iLLD from Infineon.
Does the above explained method requires OS? If yes, can you please brief me the procedure to measure CPU load without OS?
Thank you @Dheeraj

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Embedded Coder Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by