Hi everyone. I'm using Keil uVision v5.20.0.0 on Windows 10 x64. Trying to flash STM32F103C8T6. The device is visible in the debugger settings window and flash programming algorithm is set too. But when I click the "load" (F8) button, uVision crashes without any error message. What is possibly wrong with it?
Hello Dmitry,
Don't worry about initialization file. I doubt it is relevant. You can read more about them here: http://www.keil.com/support/man/docs/uv4/uv4_fl_predownload.htm
Are you using CoLink or CoLinkEx?
I bet the plugin for the CoLink was only designed for MDKv4. (CoLink was discontinued)
I see the following options: - use the plug-in in an earlier version of MDK (with a PSN or LIC, some previous versions are available for download at http://www.keil.com/demo) - upgrade to CoLinkEx (with CMSIS DAP firmware) or another CMSIS DAP debugger. Debug adapters that implement this standard can be used inside MDKv5, without the need for a plugin.
The developers have made significant changes (more features and bug fixes) to debugger, since MDKv4, and throughout MDKv5, so perhaps this is why old plugin cannot handle some operations in the new IDE.
Thanks, Zack
I'm using a CoLink. The older version of uVision (v4.72) crashes on launch attempt. I'm using the evaluating version of Keil, so there is neither PSN nor LIC. About upgrading to ColinkEx - very doubtful. All I see on this adapter - an 74HC541D, FTDI chip and a number of resistors and capacitors. Not sure if there is something to keep or update a firmware. But it seems like a working device: Keil sees my STM and even managed to flash it with a quick-start project from easyelectronics.ru (where I made no change). So it CAN work. Somehow. All the problem is that I'm setting my project wrong somehow. Or maybe I should switch to CooCox IDE for a period until I can afford an ST-Link adapter for example.
Any ideas about giving Keil a last shot? Checking some settings? Installing patches? Adding packages?
You can try deleting *.uvopt file for the project. This will remove a lot of configuration information, so uVision will recreate a new config file, with default settings. Then try reopening project.
Otherwise, I recommend upgrading to a newer debug adapter and MDKv5.20.
The ST-LINK's are available for under $10, and Nucleo boards w/ST-LINK are about the same.
Well, I will have to wait the shipment for a month, and there are two kinds of ST-Link available: cheap and expensive. Are the small cheap ones reliable?