# Mk64 Questions about HardFault routines （IAR）

**URL:** <https://forums.freertos.org/t/mk64-questions-about-hardfault-routines-iar/13444>\
**Category:** Kernel\
**Created:** [September 13, 2021, 9:00am UTC](https://forums.freertos.org/t/mk64-questions-about-hardfault-routines-iar/13444 "2021-09-13T09:00:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiveOnInDegradation](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@LiveOnInDegradation](https://forums.freertos.org/u/LiveOnInDegradation)\
**Post date:** [September 13, 2021, 9:00am UTC](https://forums.freertos.org/t/mk64-questions-about-hardfault-routines-iar/13444/1 "2021-09-13T09:00:12Z")

</div>

> **[Debugging and diagnosing hard faults on ARM Cortex-M CPUs](https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html?_ga=2.7050486.577349958.1631515250-898702358.1614837031)**
>
> Debugging hard fault exceptions on ARM Cortex-M3 and ARM Cortex-M4 microcontrollers

 ![image](https://d2v6vdsk2p900z.cloudfront.net/original/2X/4/4869ed63f53084cf921f71563de4dd21f5a46d8e.png)

Cannot debug，Can’t break point？

 ![image](https://d2v6vdsk2p900z.cloudfront.net/original/2X/e/ea72fe78771109fc92164f547c5a9c62eb2aa4b3.png)  
Unable to jump  
why?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 13, 2021, 3:31pm UTC](https://forums.freertos.org/t/mk64-questions-about-hardfault-routines-iar/13444/2 "2021-09-13T15:31:09Z")

</div>

Are you asking why the hardfault handler you show in the top image is not the handler entered when a hard fault occurs? If so, then that is really a tools or C question rather than a FreeRTOS question. It might be because the handler in the top image is declared static, so it is not visisble from the assembly file shown in the second image.

---

<div class="post-metadata">

**Author:** ![LiveOnInDegradation](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@LiveOnInDegradation](https://forums.freertos.org/u/LiveOnInDegradation)\
**Post date:** [September 15, 2021, 8:49am UTC](https://forums.freertos.org/t/mk64-questions-about-hardfault-routines-iar/13444/3 "2021-09-15T08:49:59Z")

</div>

Thank you. The problem has been solved

This is because the GCC code format cannot be applied to IAR
