cancel
Showing results for 
Search instead for 
Did you mean: 

Hardfault STM32

vindhyachal
Associate II
Posted on June 12, 2015 at 15:59

1. I am using STM32 with keil v5.

2. In my code I am getting hardfault, however I don't see any error in ''fault report'' option of keil.

3. What could be error?

4. Attached is pic.

http://www.docdroid.net/139z9/pic.pdf.html

#wait-for-you--clive1-!-!-!
1 REPLY 1
Posted on June 12, 2015 at 16:06

3. What could be error?

There are a lot of common errors that cause Hard Faults, I've covered these before. Most likely touching an illegal memory area.

Suggest you start by getting a proper fault handler, see Joseph Yiu examples, and identify the instruction that is faulting, and the registers.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..