# Last Task of freeRTOS reset the stm32l4

**URL:** <https://forums.freertos.org/t/last-task-of-freertos-reset-the-stm32l4/20875>\
**Category:** Kernel\
**Created:** [July 2, 2024, 2:22pm UTC](https://forums.freertos.org/t/last-task-of-freertos-reset-the-stm32l4/20875 "2024-07-02T14:22:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [July 3, 2024, 5:20am UTC](https://forums.freertos.org/t/last-task-of-freertos-reset-the-stm32l4/20875/6 "2024-07-03T05:20:08Z")

</div>

> [@Qaisar](#):
>
> the last task which is “SleepMode” after executing it, the device reset itself why?

Have you applied the suggestions provided in this post - [FreeRTOS with stop2 mode using rtc for wakeup](https://forums.freertos.org/t/freertos-with-stop2-mode-using-rtc-for-wakeup/20613/). If yes, please share the complete code as others have asked.

---

_[View the full topic](https://forums.freertos.org/t/last-task-of-freertos-reset-the-stm32l4/20875)._
