# Program counter getting corrupted inside the tick ISR

**URL:** <https://forums.freertos.org/t/program-counter-getting-corrupted-inside-the-tick-isr/14622>\
**Category:** Kernel\
**Created:** [March 7, 2022, 11:26am UTC](https://forums.freertos.org/t/program-counter-getting-corrupted-inside-the-tick-isr/14622 "2022-03-07T11:26:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VBT289](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/vbt289/32/2001_2.png) [@VBT289](https://forums.freertos.org/u/VBT289)\
**Post date:** [March 7, 2022, 11:26am UTC](https://forums.freertos.org/t/program-counter-getting-corrupted-inside-the-tick-isr/14622/1 "2022-03-07T11:26:55Z")

</div>

I am trying to port a FreeRTOS test project and facing issue inside the tick ISR wherein the PC is getting corrupted inside the tick ISR while restoring the context and the execution jumps to some invalid memory location leading to TRAP fault. Any pointers on debugging this issue?

---

<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:** [March 7, 2022, 12:04pm UTC](https://forums.freertos.org/t/program-counter-getting-corrupted-inside-the-tick-isr/14622/2 "2022-03-07T12:04:18Z")

</div>

> **[FreeRTOS FAQ - links to all RTOS FAQ pages](https://www.freertos.org/FAQ.html)**
>
> This page links to all the other FreeRTOS FAQ pages. FreeRTOS is a portable, open source, mini Real Time kernel. A free RTOS for small embedded systems

might help
