I’m using the latest VisualGDB (downloaded and installed yesterday) with VS2015 to debug some motor control code on an STM32F401. When stopped at a breakpoint in my code, I click on the “reset” icon expecting the debugger to reset the target followed by hitting a breakpoint at the beginning of main().
The reset doesn’t happen immediately… When I click on the reset icon my code resumes running for about half a second before the MCU gets reset. It’s easy to tell this is happening because the motor starts running and continues to run for this half-second period. This is very disconcerting. I would expect the CPU to be reset immediately and not left to run for so long before the reset is actually issued.
Is there a configuration option I need to set to ensure target CPU resets happen immediately?