S32 design studio

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
3,064件の閲覧回数
Binge
Contributor I

Hi,

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

 

Regards,

Binge.

0 件の賞賛
返信
1 解決策
2,978件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
2,998件の閲覧回数
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 件の賞賛
返信
3,045件の閲覧回数
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 件の賞賛
返信
3,022件の閲覧回数
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 件の賞賛
返信
2,979件の閲覧回数
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 件の賞賛
返信