How to create simple scheduler for 100ms,200ms,300ms periodic tasks using Timers in S32K144EVB

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

How to create simple scheduler for 100ms,200ms,300ms periodic tasks using Timers in S32K144EVB

197 Views
Anilpatil_SasvaAuto
Contributor III

Hello Team,

1.I am trying to implement a simple scheduler that generates 100ms,200ms, and 300ms periodic tasks using Timers in S32K144EVB. Not getting how to start.

Could you please help me to develop the software to create a simple scheduler for 100ms,200ms, and 300ms periodic tasks using Timers in S32K144EVB?

If you have any example code for the same, then please send it.

2. How to configure the periodic CAN messages using FlexCAN? Please guide me in configuring the FlexCAN periodic messages using S32K144EVB.

3.How to transmit the CAN messages periodically using S32K144EVB? Please provide the example code if any?

0 Kudos
1 Reply

179 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) use some timer module for that, e.g LPIT timer(s) to generate interrupt(s) at your desired period. There are some basic demo examples for that, depending driver/code you want to use. For baremetal code you can refer to https://www.nxp.com/docs/en/application-note/AN5413.pdf. These examples are also included in older S32DS for ARM v2.2
SDK demo: c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.3\examples\S32K144\driver_examples\timer\lpit_periodic_interrupt\
RTD demo: c:\NXP\S32DS.3.4\S32DS\software\PlatformSDK_S32K1_2022_02\SW32K1_RTD_4_4_1_0_1_D2202\Gpt_TS_T40D2M10I1R0\examples\S32DS\Lpit_Gpt_Example_S32K144\

2) above AN and SDK/RTD include FlexCAN examples as well. Moreover you can refer to S32K1xx SDK FlexCAN sample projects to demonstrate its basic and advanced features
S32K Examples
FlexCAN does not offer any feature for periodic sending, user have to prepare TX MB for sending by own.

BR, Petr

 

0 Kudos