Is ther HFSR(Hard fault status register) in cortex M0?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
bugkiller
Level 2
Level 2
10 replies posted 50 sign-ins First like received

My problem is : project keep fall into the hardfault situation. So, I export the project from PSoC to IAR EW  for hardfault debug. But I cannnot found HFSR(Hard fault register) anywhere. 

And I just saw a article that cortex m0 does NOT support hard fault register? 

Is that true, or just has different register name ?

ps : My development board using CY8C4248LQI-BL553 MCU(cortex m0)

Thanks!

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Cortex M0 does not have that. You may find the following thread on ARM helpful. https://community.arm.com/support-forums/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault/9404...

Best Regards,
Vasanth

View solution in original post

0 Likes
4 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Cortex M0 does not have that. You may find the following thread on ARM helpful. https://community.arm.com/support-forums/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault/9404...

Best Regards,
Vasanth

0 Likes
bugkiller
Level 2
Level 2
10 replies posted 50 sign-ins First like received

Thanks for the quick reply! I will check the thread later.

0 Likes
idream
Level 3
Level 3
50 sign-ins First comment on blog 10 replies posted

Hi,

you can use the CmBackTrace to trace the hardfault of CM0, it is usefull for PSoC4.

I write one note at https://xarm.gitee.io/2022/08/21/PSoC4/PSoC4SoftUart/  

hopt it can help you.

 

0 Likes
idream
Level 3
Level 3
50 sign-ins First comment on blog 10 replies posted

Hi,

可以使用CmBackTrace来跟踪CM0的Hardfault,对PSoC Creator和PSoC4依然有效,通过uart可以将产生hardfault时的CPU寄存器全部打印出来,通过addline工具可以分析定位至哪条语句引起的hardfault。我写了一篇笔记:https://xarm.gitee.io/2022/08/21/PSoC4/PSoC4SoftUart/ 

希望它对你有用。

 

0 Likes