S32DS 3.5 S32K344 freertos OsifUseSystemTimer

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

S32DS 3.5 S32K344 freertos OsifUseSystemTimer

Jump to solution
387 Views
harryoceana
Contributor II

20250513-173958.png

S32K344 在不使用MACL, 使用FreeRtos的情况下,是否可以使用OsifUseSystemTimer, 如果可以使用,OsifCounterConfig里的选项应该怎么配置。如果使用OsifUseCustomTimer, 将Pit或者STM作为定时器, OsifCounterConfig又应该怎么配置?

0 Kudos
Reply
1 Solution
338 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @harryoceana,

Sorry, I thought you meant to use System Timer without FreeRTOS. If you are using any operating system, you must use that clock instead.

For example, in FreeRTOS_Toggle_Led_Example_S32K344, the OsIfFreeRtosType choice is set, and the FreeRTOS clock is used instead.

Julin_AragnM_0-1747247790056.png

Best regards,
Julián

View solution in original post

0 Kudos
Reply
3 Replies
365 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @harryoceana,

Yes, you can use the System Timer. Please refer to this post: Solved: Delay function using OSIF - NXP Community. In the newer RTD updates, you can simply add the "Clock_Ip_ReferencePoints" component instead of the Mcu driver in the MCAL layer:

Julin_AragnM_0-1747155380366.png

Julin_AragnM_1-1747155408607.png

Best regards,
Julián

0 Kudos
Reply
354 Views
harryoceana
Contributor II

有道截屏翻译结果_1747186631767.png

在freertos 下,时钟参考提示只能在无操作系统下使用,这个有影响吗?

0 Kudos
Reply
339 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @harryoceana,

Sorry, I thought you meant to use System Timer without FreeRTOS. If you are using any operating system, you must use that clock instead.

For example, in FreeRTOS_Toggle_Led_Example_S32K344, the OsIfFreeRtosType choice is set, and the FreeRTOS clock is used instead.

Julin_AragnM_0-1747247790056.png

Best regards,
Julián

0 Kudos
Reply