Sample use of the Run Time Statistics function on S32K144

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

Sample use of the Run Time Statistics function on S32K144

1,239件の閲覧回数
fengjuntian
Contributor I

hello,

I created a FreeRTOS project and used vTaskGetRuntimeStats () to get CPU usage.

But the program kept running portFORCE_INLINE static void vPortRaiseBASEPRI( void )

Please provide a sample program, thank you!

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

1,230件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

have you enabled the statistics in the freertos component?

lukaszadrapa_0-1624893509204.png

Regards,

Lukas

0 件の賞賛
返信

1,221件の閲覧回数
fengjuntian
Contributor I

Thank you. I've solved the overflow problem.

I configured both options

#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() /* nothing */ /* default: use Tick counter as runtime counter */

#define portGET_RUN_TIME_COUNTER_VALUE()    xTaskGetTickCount() /* default: use Tick counter as runtime counter */ 

My new question is, how do I calculate the CPU usage statistics for every five minutes?

0 件の賞賛
返信