2096390_en-US

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

2096390_en-US

2096390_en-US

S32DS 3.5 S32K344 freertos OsifUseSystemTimer

20250513-173958.png

If using FreeRTOS instead of MACL on the S32K344, can OsifUseSystemTimer be used? If so, how should the options in OsifCounterConfig be configured? If OsifUseCustomTimer is used, with Pit or STM as the timer, how should OsifCounterConfig be configured?

Re: S32DS 3.5 S32K344 freertos OsifUseSystemTimer

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 


Re: S32DS 3.5 S32K344 freertos OsifUseSystemTimer

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

Re: S32DS 3.5 S32K344 freertos OsifUseSystemTimer

有道截屏翻译结果_1747186631767.png

In FreeRTOS, the clock reference hint can only be used without an operating system. Does this have any impact?

Re: S32DS 3.5 S32K344 freertos OsifUseSystemTimer

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

Tags (1)
No ratings
Version history
Last update:
12 hours ago
Updated by: