I'm about to start using C++ for embedded and chose STM32F103C8T6 AKA Blue Pill for my first project. Using Keil MDK 5.34 on my Windows machine I went to practice this series but I get the following error when I tap on Flash -> Download (F8).
I tried many remedies notably, un-install/re-install the St Link V2 (screenshot below) driver, changing USB cable and port on the PC, and so on but no change in result thus far.
Why do I get that error and what are you ideas on solving this issue, please?
Thanks beforehand for your time and help.
We have summarized a possible solution at this KBA:
https://www.keil.com/support/docs/4088.htm
Another solution:
- Change the "Options For Target - Debug - Settings - Debug - Connect" setting to with Pre-reset for this board, then save your settings.
I tested that but the error still exits! :(
Do you also face this problem with one of the example projects provided by the Pack Installer?
(Note, you have to install the corresponding Device Family Pack of course)
In case this works, compare the Debug-settings
I copied the highlighted item of the figure below
into and folder called "Blinky_copy" on my machine and then tapped F8 while the dongle was connected to IDE. There's a new error!
One other odd thing is that even if the project is built successfully (Project -> build Target F7) as in shown in the figure below:
There'll be no file with .bin or .hex extension in the project's directory! :(
You have to specifically request a Hex file - by default, you just get the .AXF
Check your Project settings
EDIT
www.keil.com/.../uv4_dg_adsout.htm