# FreeRTOS does not execute first task after 'svc 0' call

**URL:** <https://forums.freertos.org/t/freertos-does-not-execute-first-task-after-svc-0-call/16124>\
**Category:** Kernel\
**Created:** [November 5, 2022, 11:04am UTC](https://forums.freertos.org/t/freertos-does-not-execute-first-task-after-svc-0-call/16124 "2022-11-05T11:04:09Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![hs2](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hs2](https://forums.freertos.org/u/hs2)\
**Post date:** [November 5, 2022, 4:04pm UTC](https://forums.freertos.org/t/freertos-does-not-execute-first-task-after-svc-0-call/16124/10 "2022-11-05T16:04:58Z")

</div>

That’s what I guessed. And following

> [@FreeRTOS newbie - STM32F103 + libopenCM3 + build errors](https://forums.freertos.org/t/freertos-newbie-stm32f103-libopencm3-build-errors/12848/7):
>
> The PendSV handler is intended to _be_ the ISR, not to be called from the ISR. If the PendSV handler is called from the ISR, and if the ISR uses stack, the PendSV handler can’t do its job properly. The proper alternative to opencm3.c is the three #define statements you mentioned earlier that put the FreeRTOS handlers directly into the vector table.

could hopefully solve the problem. @jefftenney is an expert 👍  
Are there any hints from the libopencm3 community regarding integration or conflicts with FreeRTOS ?

---

_[View the full topic](https://forums.freertos.org/t/freertos-does-not-execute-first-task-after-svc-0-call/16124)._
