2016-10-22 12:08 AM
2016-10-22 07:08 AM
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.2016-10-22 07:22 AM
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