MIMXRT1064: Run time CPU usage calculation

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

MIMXRT1064: Run time CPU usage calculation

ソリューションへジャンプ
3,004件の閲覧回数
zekelandon
Contributor III

Hi,

I am trying to measure the run time statistics for thread running in FreeRTOS for MiMXRT1064-EVK board. I found this information for other board and it was mentioned that calculation differs with respect to #cpuport/board.

Could you help me how to do this for my board?

Regards,

Zeke

1 解決策
2,772件の閲覧回数
ErichStyger
Specialist I
9 返答(返信)
2,772件の閲覧回数
ErichStyger
Specialist I

Hi Zeke,

I see if I can come up with an example of it for you. Just give me some time.

Erich

0 件の賞賛
返信
2,772件の閲覧回数
zekelandon
Contributor III

Hi Erich,

Thank you for the support. Looking forward to hear from you.

Regards,

Zeke

0 件の賞賛
返信
2,773件の閲覧回数
ErichStyger
Specialist I

Hi Zeke,

I have published an example:

FreeRTOS Task Runtime Statistics for NXP i.MX RT1064 | MCU on Eclipse 

I hope this helps,

Erich

2,773件の閲覧回数
zekelandon
Contributor III

Hi Erich,

I tried following your tutorial and found the definitions given below.

#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()   McuRTOS_AppConfigureTimerForRuntimeStats()

#define portGET_RUN_TIME_COUNTER_VALUE()   McuRTOS_AppGetRuntimeCounterValueFromISR()

Are they the internal APIs? But the APIs and definitions being used are not available for me.

  • configGENERATE_RUN_TIME_STATS_USE_TICKS
  • McuRTOS_AppConfigureTimerForRuntimeStats()
  • McuRTOS_AppGetRuntimeCounterValueFromISR()

Could you please clarify me on the above mentioned items in terms of NXP MCUXpresso SDK?

Regards,

Zeke

0 件の賞賛
返信
2,773件の閲覧回数
ErichStyger
Specialist I

They are not part of the FreeRTOS delivered with the SDK (it does not support the Systick as performance counter): you can ignore these as you can use the timer. You still need to configure the timer (of course).

0 件の賞賛
返信
2,773件の閲覧回数
zekelandon
Contributor III

Hey Erich,

Thank you. I was able to do it.

Regards,

Zeke

0 件の賞賛
返信
2,773件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hello Zeke,

 

Same procedure should work for your board as well. If you have any further question please let me know.

 

Best regards,

Felipe

0 件の賞賛
返信
2,773件の閲覧回数
zekelandon
Contributor III

Hey Felipe,

I followed the tutorial but I am unable to setup as my device does not have

the timer/driver mentioned. Could you help me how to do the same with

hardware available in my board?

Regards,

Zeke

Thanks

0 件の賞賛
返信
2,773件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hello Zeke,

 

You could use a different timer such as Quad Timer (TMR) instead. There are some examples included I our SDK that could help you to understand the basic configuration.

 

Regards,

Felipe

0 件の賞賛
返信