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
2,454 Views
harryoceana
Contributor II

20250513-173958.png20250513-173958.png

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

0 Kudos
Reply
1 Solution
2,405 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.pngJulin_AragnM_0-1747247790056.png

Best regards,
Julián

View solution in original post

0 Kudos
Reply
4 Replies
2,432 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.pngJulin_AragnM_0-1747155380366.png

Julin_AragnM_1-1747155408607.pngJulin_AragnM_1-1747155408607.png

Best regards,
Julián

0 Kudos
Reply
2,421 Views
harryoceana
Contributor II

有道截屏翻译结果_1747186631767.png有道截屏翻译结果_1747186631767.png

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

0 Kudos
Reply
2,406 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.pngJulin_AragnM_0-1747247790056.png

Best regards,
Julián

0 Kudos
Reply
326 Views
Djuric
Contributor III

If anyone is reading this, this is not correct information.
When OsIfsOperatingSystemType is set to OsIfFreeRtosType, the OsIf System Timer is disabled.

 

Works only in baremetal mode

https://community.nxp.com/t5/S32K/Microsecond-delay-outside-of-FreeRTOS-task-on-S32K344/td-p/1383622 

 

0 Kudos
Reply