keil v5 STM32F4 - Cannot access memory
I had nearly same problem and I could solve it with the help of this.


  In the debugger hardware setting window you have to explicitly select
  SW, otherwise the debugger will try to use the full JTAG interface for
  debugging. right click on your project root folder > Option for target
  ... > debug > use: STlink > settings > Port: SW