AnsweredAssumed Answered

KW41:How to print out CFSR and HFSR?

Question asked by Daniel Tseng on Apr 13, 2020
Latest reply on May 27, 2020 by Daniel Tseng

We use KW41's "SMAC connectivity test" as the base to develop the program.
Because the current self-written program crashes during execution.
I want to use HardFault to debug.
Just like the following URL that  read Register.

Developing a Generic Hard Fault handler for ARM Cortex-M3/Cortex-M4 - Sticky Bits - Powered by FeabhasSticky Bits – Powe… 
How can I add programs to print out the CFSR and HFSR values?

Because HardFault_Handler () is an assembly code, I do n’t know where to start?