⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
JamesHiebert
Offline
Last seen:6 months 2 weeks ago
加入:2014-10-24 14:17
Hardfault cause?

Hello Dialog,

我们的一些德vices are occasionally suffering hardfaults. From diagnostic data collected from the device, I understand that I can determine the address of faulting instructions via the saved PC. Is this true, or is the PC at the time of the fault actually the instruction AFTER the faulting instruction? The reason I'm asking is that the PC points to a MOV instruction, which follows a LDRB instruction. LDRB seems much more likely to cause a hardfault.

Thanks!

Device:
PM_Dialog
Offline
Last seen:5 days 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi JamesHiebert,

Hi JamesHiebert,

The PC at the time of the hardfault contains the address of the faulting instruction. For example if the last assembly instruction of the faulting C code is at 0x20005924, the PC at the time of the haurdfault will point at the same address. So, your query that the PC at the time of the fault actually the instruction AFTER the faulting instruction, is not correct.

Thanks, PM_Dialog