# I am using FreeRTOS with STM32G0 series. I created two tasks in the beginning it goes to two task but after couple of times it always stuck in one task

**URL:** <https://forums.freertos.org/t/i-am-using-freertos-with-stm32g0-series-i-created-two-tasks-in-the-beginning-it-goes-to-two-task-but-after-couple-of-times-it-always-stuck-in-one-task/11888>\
**Category:** Kernel\
**Created:** [March 3, 2021, 3:24am UTC](https://forums.freertos.org/t/i-am-using-freertos-with-stm32g0-series-i-created-two-tasks-in-the-beginning-it-goes-to-two-task-but-after-couple-of-times-it-always-stuck-in-one-task/11888 "2021-03-03T03:24:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jefftenney](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/jefftenney/32/1314_2.png) [@jefftenney](https://forums.freertos.org/u/jefftenney)\
**Post date:** [March 3, 2021, 4:30am UTC](https://forums.freertos.org/t/i-am-using-freertos-with-stm32g0-series-i-created-two-tasks-in-the-beginning-it-goes-to-two-task-but-after-couple-of-times-it-always-stuck-in-one-task/11888/2 "2021-03-03T04:30:07Z")

</div>

Here are a few “basics” that have helped many new users. Be sure you have [configASSERT()](https://www.freertos.org/a00110.html#configASSERT) defined and that you enable [stack overflow checking](https://www.freertos.org/Stacks-and-stack-overflow-checking.html) and use the [malloc-failed hook](https://www.freertos.org/a00110.html#configUSE_MALLOC_FAILED_HOOK).

And with Cortex M, the FAQ is especially helpful:

> **[FreeRTOS - Open Source RTOS Kernel for small embedded systems](https://freertos.org/FAQHelp.html)**
>
> FreeRTOS is a portable, open source, mini Real Time kernel. A free RTOS for small embedded systems

---

_[View the full topic](https://forums.freertos.org/t/i-am-using-freertos-with-stm32g0-series-i-created-two-tasks-in-the-beginning-it-goes-to-two-task-but-after-couple-of-times-it-always-stuck-in-one-task/11888)._
