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?

39 REPLIES 39

Ok, its labeled STM... , but see an real STM :

https://www.richis-lab.de/STM32_02.htm

ed. -- and real CKS :

https://www.richis-lab.de/STM32_03.htm

 

and a re-labeled :

https://www.richis-lab.de/STM32_04.htm

 

+ other :

https://www.richis-lab.de/STM32.htm

 

...seems you have a re-labeled, if ID: 0x2BA01477  is CS32F103C8T6  by CKS .

If you feel a post has answered your question, please click "Accept as Solution".
Peter BENSCH
ST Employee

At least the counterfeiter has omitted the ST logo. 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
IMumt.1
Associate II

Now that I have bought a genuine STM32 board, still it shows the wrong Chip ID in keil. I want to confirm, whether there is some issue in keil Configuration or the issue is with the board?

 

Peter BENSCH
ST Employee

What kind of board did you buy?

Do you have a photo of it?

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

STM32 frontSTM32 frontSTM32 backSTM32 back

Peter BENSCH
ST Employee

This is one of these so-called Blue Pills.

The probability that you will find such a Blue Pill with a genuine STM32F103 has been close to zero for years. Forget the Blue Pills and buy a NUCLEO, e.g. the NUCLEO-F103RB, they are (so far) only available as genuine variants.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

So check connection with Stm32CubeProgrammer,

maybe set : 

AScha3_0-1714465318660.png

and show screenshot (what it telling about target ) -then we see. 

 

btw

chip on new BluePill looks "good" , original . (But only connection telling the truth ! )

If you feel a post has answered your question, please click "Accept as Solution".

I am using ST-Link debugger for programming it.

Ok,

but for more , good info you need to do it this way, as i wrote -> check connection with Stm32CubeProgrammer ...

btw 

st-link utility is old , deprecated ... so use Stm32CubeProgrammer .

 

If you feel a post has answered your question, please click "Accept as Solution".

My gut feeling is that there is some issue in Keil project configuration. Can you help me with that?