Measuring function time / cycle counter on MPC5748G

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Measuring function time / cycle counter on MPC5748G

384件の閲覧回数
nimrodzarmi
Contributor II

I am trying to implement an API to accurately measure code samples running times.

I did a similar thing on an ARM Cortex M4 core, using a cycle counter register.

 

I cannot find a similar register in e200z4 core.
I've read about people using the decrementer register as a cycle counter.

I tried accessing this register using ASM_KEYWORD (Diab compiler), but it didn't assemble.

https://www.nxp.com/docs/en/reference-manual/e200z4RM.pdf 

 

I then read the MPG5748G does not have a decrementer register, even though it has 2 e200z4 cores?
MPC5748G with OS tick lower than 1ms (100us) - ChibiOS Free Embedded RTOS 

 

What is the formal solution for cycle counting on this chip?

0 件の賞賛
0 返答(返信)