Disable FreeRTOS Systick

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Disable FreeRTOS Systick

3,462 次查看
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 项奖励
回复
3 回复数

3,293 次查看
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 项奖励
回复

3,293 次查看
kaarthick
Contributor II

How to jump out of vTaskStartScheduler . 

I exit from scheduler and move to while loop

0 项奖励
回复

3,293 次查看
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 项奖励
回复