S32 design studio

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

S32 design studio

Jump to solution
1,470 Views
Binge
Contributor I

Hi,

Is there any way to check the core clocks(running time) of a function in S32DS?

 

Regards,

Binge.

0 Kudos
Reply
1 Solution
1,384 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There is a thread that talks about a different platform but provides some ideas of the execution time:

Solved: How can I measure the execution time of a function... - NXP Community

Another idea is what it was already provided, which is using a timer to measure the entry and exit of the function, it just needs to be set so that it stops when the debugging session is halted by a breakpoint.

Another possibility is provided under the thread, which is measuring by executed instructions under the function.

There is also an explanation provided under the following AN:

Measuring Interrupt Latency (nxp.com)

Which could be of use.

Please, let us know.

View solution in original post

0 Kudos
Reply
4 Replies
1,404 Views
YanyiQiu
Contributor III

Please refer to

1. use gpio (set high before code execution , set low after code execution) and hard oscilloscope

2. timer tick count (system time tick or other)

please consider the impact of an interruption 

0 Kudos
Reply
1,451 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Can you help us elaborate more on your request? We understand that are trying to measure the execution time of a function, but we are not completely sure about it.

Please, let us know.

0 Kudos
Reply
1,428 Views
Binge
Contributor I

Hi,

Yes,I am  trying to measure the execution time of a function or a code segment.Please tell me how to do that?

Regards,

Binge.

0 Kudos
Reply
1,385 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There is a thread that talks about a different platform but provides some ideas of the execution time:

Solved: How can I measure the execution time of a function... - NXP Community

Another idea is what it was already provided, which is using a timer to measure the entry and exit of the function, it just needs to be set so that it stops when the debugging session is halted by a breakpoint.

Another possibility is provided under the thread, which is measuring by executed instructions under the function.

There is also an explanation provided under the following AN:

Measuring Interrupt Latency (nxp.com)

Which could be of use.

Please, let us know.

0 Kudos
Reply