I have app_error_handler and HardFault_Handler defined - I have the WDT enabled. My issue is if I trigger a hard fault:
// Enable divide by zero interrupt
//
SCB->CCR |= 0x10;
int HwTest = 10;
int HwDivisor = 0;
int HwTrigger = HwTest / HwDivisor;
I don't hit any break points in my code, the code stops at 0x000008c8 - the Softdevice handler. My WDT does not fire.
I'm trying to create a test case to catch and handle a hard fault in my code. Any Ideas what I'm missing? Thanks