LPC1768 Save hard fault context

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1768 Save hard fault context

ソリューションへジャンプ
1,581件の閲覧回数
yakoinfinity
Contributor II

Hi folks! 

I've been experiencing some troubles with an application on one client. For some reason, after some time of normal use, it locks up on a Hard fault and performs a watchdog reset (wich is the expected behaviour). It occurs every hour, sometimes 2 or 3 times.
But, since we can not reproduce the fault, i've thinking in the possibility of make some post-mortem debugging in site. 

There are a chance of saving the context (registers, PC) somewhere on the MCU, before it locks up and wait for watchdog reset?

Actually, i'm using default fault handlers, CMSIS Drivers and CoOs. MCU is LPC1768.

Any help will be welcome.

Regards,

Exequiel.

ラベル(1)
1 解決策
1,255件の閲覧回数
carstengroen
Senior Contributor II
1 返信
1,256件の閲覧回数
carstengroen
Senior Contributor II

Exequiel,

some good info can be found in Keil's appnote here: http://www.keil.com/appnotes/files/apnt209.pdf 

and here: Debugging a Cortex-M0 Hard Fault - Discussions - Embedded - Arm Community 

Hope this helps...