cancel
Showing results for 
Search instead for 
Did you mean: 

Blue pill (STM32F1) board gets programmed through Arduino IDE but not using Keil, chip ID:0x2BA01477

IMumt.1
Associate II

I am trying to program STM32 Blue pill board using Keil, and it gives the following error: "Connection refused due to device mismatch; Device connected to debug unit is different from device selected for project target STMicroelectronics STM32F103C8." I am using ST-Link debugger for programming as it does not have on-board ST-debugger. The issue is that it reads chip ID:0x2BA01477, which, I have read on other forums, is the ID read when your board uses clone instead of real STM32F103C8T6. Still, I want to program it using Keil. When I program the same setup using Arduino IDE, it is gets programmed in a perfectly fine way. Is there any other way to resolve this error in Keil using the same board or there is no other option left but to replace the board?

40 REPLIES 40
1dk
Associate

I encountered the same problem today. I searched the community and found that it was because I bought a counterfeit chip.
But it can also be burned using ST-LINK. Just remove the √ sign from the options marked in the picture.

 

This post has been translated from Chinese to comply with the ST Community guidelines.