Hard Fault with USART & Ethernet
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-22 12:08 AM
Posted on October 22, 2016 at 09:08The original post was too long to process during our migration. Please click on the attachment to read the original post.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-22 7:08 AM
Posted on October 22, 2016 at 16:08
Use a proper Hard Fault handler and identify the code that is faulting so you can ascertain why.
You can use the .MAP file to identify functions/code by address, and you can understand register usage/content by reviewing the code disassembly at and immediately before the faulting instructions. Review if the code you are calling is thread/interrupt safe, and if you need to implement some mutex/semaphore to prevent re-entry.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-22 7:22 AM
Posted on October 22, 2016 at 16:22
Thanks dear clive1
I'm newbie in debugging. Could you introduce me with some good references (such as video or pdf ,...) to debug and ascertain very well in keil? Thanks