Disable FreeRTOS Systick

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

Disable FreeRTOS Systick

2,080 Views
kaarthick
Contributor II

Hai,

I am using MCUXpresso compiler with MK10DN512VLQ IC.

During Sleep mode i have to disable all modules and also FreeRTOS Systick and i have to wait for other Interrupt.

Can anyone help me how to disable FreeRTOS Systick?

0 Kudos
Reply
3 Replies

1,911 Views
BlackNight
NXP Employee
NXP Employee

Hi Karthik,

I think what you want to do is not usinig SysTick at all, but using a low power timer instead.

See IoT: FreeRTOS Down to the Micro Amps | MCU on Eclipse  which uses the Kinetis low power timer instead. This timer is running even in low power mode (usually 1 kHz).

And combine this with the tickless idle mode of FreeRTOS, see Low Power with FreeRTOS: Tickless Idle Mode | MCU on Eclipse 

I hope this helps,

Erich

0 Kudos
Reply

1,911 Views
kaarthick
Contributor II

How to jump out of vTaskStartScheduler . 

I exit from scheduler and move to while loop

0 Kudos
Reply

1,911 Views
BlackNight
NXP Employee
NXP Employee

Hi Karthik,

not sure if I understand?

If the call to vTaskScheduler() is not sucessful (check the return code), most likely you have not enough heap allocated and creating the IDLE task failed.

If you want to terminate the scheduler you need a FreeRTOS port which implements that functionality. You can see this in my port here: FreeRTOS: how to End and Restart the Scheduler | MCU on Eclipse 

I hope this helps,

Erich

0 Kudos
Reply