- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick reply! I will check the thread later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
可以使用CmBackTrace来跟踪CM0的Hardfault,对PSoC Creator和PSoC4依然有效,通过uart可以将产生hardfault时的CPU寄存器全部打印出来,通过addline工具可以分析定位至哪条语句引起的hardfault。我写了一篇笔记:https://xarm.gitee.io/2022/08/21/PSoC4/PSoC4SoftUart/
希望它对你有用。