Measure the running time of one function on S32K

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

Measure the running time of one function on S32K

541 Views
CHYYDS
Contributor II

How to Measure the running time of one function on S32K344?

How to do it specifically?

Does S32DS software have a measurement function?

0 Kudos
4 Replies

505 Views
CHYYDS
Contributor II

1

0 Kudos

529 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @CHYYDS,

The RTD drivers have Quality packages that contains execution time of the APIs.

For example: SW32K3_RTD_4.4_R21-11_3.0.0_D2303_QualityPackage.zip

Each driver has ProfileReport.xlsx

To measure the execution time of your functions, you can use a timer or measure it externaly using GPIOs.

 

Regards,

Daniel

 

0 Kudos

506 Views
CHYYDS
Contributor II
Thank you for your answer!!! I just learned this. I have downloaded this file: SW32K3_ RTD_ 4.4_ 1.0.0_ DS_ Updatesite_ D2110.zip. According to what you said, how should I configure peripherals and call API functions? I tried to search for relevant components in CT, but couldn't find them.
0 Kudos

503 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @CHYYDS,

I would recommend using S32DS 3.5 and the latest RTD 3.0.0.

The RTD you downloaded is from Oct, 2021.

You need to add the .zip file as an Update side in the IDE and then install the RTD.

danielmartynek_0-1697182534999.png

 

Once the RTD is installed, you can create a new Project from Example.

The examples show how to use the drivers.

 

Regards,
Daniel