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?
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
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.
Best regards,
Julián
In FreeRTOS, the clock reference hint can only be used without an operating system. Does this have any impact?
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:
Best regards,
Julián