Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Hard Fault on cortex M3 NXP
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
5062 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Hard Fault on cortex M3 NXP
Alessandro Spinetti
over 12 years ago
Note: This was originally posted on 20th June 2011 at
http://forums.arm.com
I've coded a small program to download in a usb memory some data acquired from the LPC1768 Cortex M3.
I use IAR EW to code and J-Link LITE to program/debug the code.
So, when I test my program with debugger connected (either in debug or release mode) it works fine.
When I program the micro and run it without the debugger connected I obtain an Hard Fault exception.
When I check the value of HFSR it return 0x80000000 -> DEBUGEVT = 1 ?
Why? Where is my fault?
Thanks.
Alessandro
Parents
Joseph Yiu
over 12 years ago
Note: This was originally posted on 20th June 2011 at
http://forums.arm.com
If DFSR is 0x2, it means BKPT instruction executed.
Iin the hardfault handler, you can try output the stacked PC value to your LCD.
(
http://embdev.net/topic/177024
)
From the stacked PC value, you should see what instruction the code was running.
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Reply
Joseph Yiu
over 12 years ago
Note: This was originally posted on 20th June 2011 at
http://forums.arm.com
If DFSR is 0x2, it means BKPT instruction executed.
Iin the hardfault handler, you can try output the stacked PC value to your LCD.
(
http://embdev.net/topic/177024
)
From the stacked PC value, you should see what instruction the code was running.
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Children
No data