# RTOS Scheduler Restarts while MCU has been running for a while

**URL:** <https://forums.freertos.org/t/rtos-scheduler-restarts-while-mcu-has-been-running-for-a-while/7004>\
**Category:** Kernel\
**Created:** [February 15, 2018, 5:28am UTC](https://forums.freertos.org/t/rtos-scheduler-restarts-while-mcu-has-been-running-for-a-while/7004 "2018-02-15T05:28:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 15, 2018, 5:28am UTC](https://forums.freertos.org/t/rtos-scheduler-restarts-while-mcu-has-been-running-for-a-while/7004/1 "2018-02-15T05:28:14Z")

</div>

**[smurali](https://sourceforge.net/u/smurali/)** wrote on [Thursday, February 15, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/66f2e151/#1526):

We have FreeRTOS running on ARM M4. After running the application for a while, the RTOS Tasks seem to restart without the MCU resetting. What could cause this?

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [February 15, 2018, 9:47am UTC](https://forums.freertos.org/t/rtos-scheduler-restarts-while-mcu-has-been-running-for-a-while/7004/2 "2018-02-15T09:47:02Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Thursday, February 15, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/66f2e151/#c9d4):

> the RTOS Tasks seem to restart

That is not normal 🙂

I would first check the regular things, [as described here](https://www.freertos.org/FAQHelp.html).  
Make sure that all task stacks are big enough, make sure that `configASSERT()` is defined. Could there be a relation with interrupts or exceptions? What about the Watchdog Timer? Are you sure it isn’t causing a reset? Can you put a break at the beginning of `main()`, or even earlier?

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [February 15, 2018, 9:48am UTC](https://forums.freertos.org/t/rtos-scheduler-restarts-while-mcu-has-been-running-for-a-while/7004/3 "2018-02-15T09:48:18Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Thursday, February 15, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/66f2e151/#9afc):

> the RTOS Tasks seem to restart

That is not normal.

I would first check the regular things, [as described here](https://www.freertos.org/FAQHelp.html).  
Make sure that all task stacks are big enough, make sure that `configASSERT()` is defined. Could there be a relation with interrupts or exceptions? What about the Watchdog Timer? Are you sure it isn’t causing a reset? Can you put a break at the beginning of `main()`, or even earlier?
