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
Well, one of the risks with going with stuff like the Blue pill is exactly that you have no idea whether they are using genuine parts or not.
Similarly, your dongle is not a genuine ST-Link - it is a Chinese knock-off.
As I said to you right at the start, you avoid all of this stuff by going with a genuine manufacturer's board!
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!
I've also purchased an STM32F411 Nucleo-64 MUC from Germany but it takes time to be arrived at my address. Uninterestingly that board has the term "Made in China" at the back of itself too! :| :|
There's a big difference between genuine stuff that's made in China, and Chinese knock-offs.
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
You're not trying to use the free ST version, are you?
That's just for Cortex-M0 parts ...
No, I have bought the STM32F103C8T6 and STM32F411 Nucleo-64 MCUs.
I mean are you using the free ST version of Keil:
https://www2.keil.com/stmicroelectronics-stm32/mdk
No, MDK 5.34
What Andy is pointing you to:
- In cooperation with ST Microelectronics Keil offers a free of charge MDK Essential license key at:
- This version is limited to just STM32F0, STM32G0, and STM32L0
- BTW - See our helpful MDK Video Tutorials at:
http://www2.keil.com/video
rkopsch said:- This version is limited to just STM32F0, STM32G0, and STM32L0
None of my MCUs are of those categories. I've already mentioned their title above.
rkopsch said: http://www2.keil.com/video
I will watch them but have doubts they talk about my current issue! :(