Power cycling breaks debugging STM32H7B3i-DK board with Keil MDK V5.30
Hi all,
I am experiencing problems when trying to debug the STM32H7B3i-DK board with Keil MDK.
Intermittently I can successfully connect to the target and debug the board by "single stepping and setting break-point etc" using the debugger.
The behavior that I have observed is as following. After a successful debug connection(i.e ability to step through code etc) if I subsequently powered down the board and try powering back up again the debugger would connect but debug session would no longer work but start throwing the following error

And the only way to recover from this condition is going through the following steps.
- power down board
- move switch sw1 to "SYS MEM"
- power up board
- User STMCubeProgrammer to perform "Fully chip erase"
- Power up the board
According to the schematic diagram BOOT0 pin is connected to either FLASH(GND) or SYS MEM(3.3V) using the SW1 switch.
I am using the following setup.
Board - STM32H7B3i-DK
OS - Windows 10
Dev tool: Keil MDK V5.30
Driver: STSW-LINK009
Any suggestions on how to solve this would appreciated