Disable FreeRTOS Systick

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable FreeRTOS Systick

236 Views
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
3 Replies

67 Views
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

67 Views
Contributor II

How to jump out of vTaskStartScheduler . 

I exit from scheduler and move to while loop

0 Kudos

67 Views
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