2024-10-15 02:43 AM
We want to light up an LED when a hard fault occurs.
Please tell me in which handler I should put the GPIO processing.
Also, We would like to turn on the LEDs for faults other than Hard fault, is that possible?
Solved! Go to Solution.
2024-10-15 02:52 AM
@pass3master wrote:We want to light up an LED when a hard fault occurs.
Good idea!
@pass3master wrote:Please tell me in which handler I should put the GPIO processing.
In the Hard Fault Handler!
On debugging Cortex-M Hard Faults - in general, and STM32 specifically:
@pass3master wrote:Also, We would like to turn on the LEDs for faults other than Hard fault, is that possible?
Of course - do it in the handlers for those faults
2024-10-15 02:52 AM
@pass3master wrote:We want to light up an LED when a hard fault occurs.
Good idea!
@pass3master wrote:Please tell me in which handler I should put the GPIO processing.
In the Hard Fault Handler!
On debugging Cortex-M Hard Faults - in general, and STM32 specifically:
@pass3master wrote:Also, We would like to turn on the LEDs for faults other than Hard fault, is that possible?
Of course - do it in the handlers for those faults
2024-10-15 03:44 AM
Thank you for your prompt reply. It was helpful.