I have a very strange problem. After stopping the Debug session, cannot download code to flash memory anymore, got error: "Flash Download failed - "Cortex-M4".
I have to restart Keil to be able to Download code to flash memory again. 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?
Hello Def,
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:
http://www.keil.com/support/docs/3824.htm
Check your "Connect and Reset options", see:
http://www.keil.com/support/man/docs/ulink2/ulink2_ctx_debug.htm
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):
www.keil.com/.../ulink2_su_flashdownloadcfg.htm
Also check you board to make sure all of the signals are brought out to the 20 pin connector. See
www2.keil.com/.../coresight-connectors
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 session.