Hard Fault - XMC 4300 __asm("BKPT 0\n")

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18369
Level 2
Level 2
Hello,

I´m working with an XMC4300. Sometimes I have the problem that the uC end in a Hard Fault.
I have no clue what to do. I enabled Hard Fault debugging support in the CPU_CTRL_XMC4_0

My application : Using SPI to control a external Motor Controll Unit.

How can I find the cause of the Hard_Fault ?
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Have a look at the ARM Keil APP note on Using Cortex-M3/M4/M7 Fault Exceptions, http://www.keil.com/appnotes/docs/apnt_209.asp

Regards,
Jesus
0 Likes