2024-04-29 05:11 AM - edited 2024-04-29 05:13 AM
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?
Solved! Go to Solution.
2024-04-30 01:51 AM
2024-04-30 01:58 AM
First we have to know, what the chip telling ...on connect.
THEN we can check, whats the problem with Keil with this chip...
2024-04-30 01:59 AM - edited 2024-04-30 02:09 AM
@IMumt.1 wrote:My gut feeling is that there is some issue in Keil project configuration.
Of course there is: you've configured your project for the wrong chip!
You've configured your project for a (genuine) STM32F103C8, and the chip that's actually on your board is not one of them.
So naturally Keil will tell you:
"Connection refused due to device mismatch; Device connected to debug unit is different from device selected for project target STMicroelectronics STM32F103C8."
There are two ways to address that:
2024-04-30 02:00 AM
That's a different issue; see, eg,
https://community.st.com/t5/other-software/cant-download-any-software/m-p/662605#M1498
2024-04-30 02:00 AM
Puuuh...problem: could you try with a VPN ? (Many have problems with download from STM last weeks.)
2024-04-30 02:02 AM
Here, STM32 Cube programmer is not available for download, if you have it's setup, can you share it with me, so that I can install and test it the way you are suggesting?
2024-04-30 02:04 AM
Which version...Win64 ?
2024-04-30 02:05 AM
Yes Win64
2024-04-30 02:06 AM
@Peter BENSCH wrote:Forget the Blue Pills and buy a NUCLEO, e.g. the NUCLEO-F103RB, they are (so far) only available as genuine variants.
^^^^^ This !! ^^^^^
Surely, by now, it has been amply demonstrated that the Blue Pill is a timewaster - it is a false economy.
Even if you do actually manage to find out what the chip on your board really is, and you do manage to configure Keil to recognise it, you will still have no guarantee as to how well - if at all - it will actually work!
#BluePill #BlackPill #Fake #Clone #JustSayNO
2024-04-30 03:35 AM