I was trying to programmatically access the flash on an stm32f411re. I had similar problems when I tried to use the debugger. What fixed it for me was to go tomenu item Project : Properties : Run/Debug Settings.Edit the launch configuration. Tab Debu...