I have a very strange problem.
After stopping the Debug session, cannot download code to flash
got error: "Flash Download failed - "Cortex-M4".
I have to restart Keil to be able to Download code to flash memory
It happens every time after Debug session. If I try to start Debug
session again, Keil will crash.
It worked before,the problems started when I created new user on
my windows pc and deleted old one. i have tried to reinstall Keil
uVission4, but it didn't solve the problem.
Where could be the problem?
What version of the Keil tools are you using? There have not been
any reported issues in the latest versions.
What device are you using? Nordic Softdevice applications can have
a "Error: Flash Download failed" message if not setup properly:
Check your "Connect and Reset options", see:
Finally, since it is failing at flash downloading, make sure
"Reset and Run" is checked on this screen (otherwise you will have to
manually power cycle the board before debugging):
Also check you board to make sure all of the signals are brought
out to the 20 pin connector. See
Also make sure that you don't have multiple Keil sessions open at
the same time. If you accidentally leave one of the other sessions
debugging your device, you will not be able to access it in another
View all questions in Keil forum