cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H5 bus fault writing DBGMCU_APB1FZR1_DBG_IWDG_STOP

PieterG
Associate III

Today, I suddenly experienced a bus fault on my stm32h563 which I traced down to

DBGMCU->APB1FZR1 |= DBGMCU_APB1FZR1_DBG_IWDG_STOP;

which I use to configure the watchdog to stop when the core has been halted by the debugger.

 

fault status registers:

SCB->CFSR 0x00008200
SCB->HFSR 0x40000000
SCB->MMFAR 0x44024008
SCB->BFAR 0x44024008

SP 0x2003f048
R0 0x00000000
R1 0x00000002
R2 0x44024000
R3 0x0800813b
R12 0x0000000f
LR 0x080341db
PC 0x0804198e
PSR 0x69000000

 

Because of this bus fault, the device would not start anymore.

This situation was not resolved by a core reset, nor by flashing new firmware, the only way to resolve it was a power cycle.

 

What could be the cause of this bus fault?

And how can I avoid this situation in the future?

0 REPLIES 0