2023-12-08 01:37 PM - edited 2023-12-08 01:38 PM
I'm trying to get the connect working from within STM32Cubeprogrammer through a stlink V2 to a STM32F103C8T6.
After many, many attempts this still does not work. I keep getting: No STM32 target found. If you....etc.
Granted, the ST-LINK V2 device is a clone, which has the latest firmware, and this clone is detected by stm32cubeprogrammer.
I am able to flash the stmf103c8t6 using a serial ftdi323 device, so I am assuming the blue pill is ok. I took a new blue pill, connected it to the stlink dongle and inserted it into my laptop. Started up stm32cubeprogrammer, stlink is detected, but connection always fails.
I have tried the suggestions other people had (like connect under reset, hold reset button while connecting) but nothing helps.
Tried every combination of jumper settings. No relief.
Tried everything in Linux and Windows. Same results.
I don't know what else I can do.
Anyone have any more suggestions, please ?
Solved! Go to Solution.
2023-12-08 02:54 PM
Buy a nucleo board for $10-$20 if your time is worth more than that.
I suspect there's something in the latest (last year or so) versions of STM32CubeIDE that causes fake programmers to fail. You could also use a version from before that, will probably work.
2023-12-08 02:03 PM
Welcome @Hans0, to the community!
Well, you expect the software tools from STMicroelectronics to support a target board with a fake MCU via a clone with a fake MCU?
Such problems have been discussed here very often and there is exactly one sensible piece of advice:
I always love how users want to use the free software and libraries from STMicroelectronics but expect it to work with the cheap junk from Asia...
Regards
/Peter
2023-12-08 02:13 PM - edited 2023-12-08 02:18 PM
with the ST-LINK V2 (stick) you need to select: software reset .
+ connect: gnd, swd, swc, 3v3 .
then it will connect.
here such a st-link:
connect ->
2023-12-08 02:54 PM
Buy a nucleo board for $10-$20 if your time is worth more than that.
I suspect there's something in the latest (last year or so) versions of STM32CubeIDE that causes fake programmers to fail. You could also use a version from before that, will probably work.
2023-12-09 05:24 AM
Nope. Tried that.
BTW, the MCU is an original one....
2023-12-09 05:38 AM
Try show what you connect and how...
2023-12-09 05:41 AM
Thanks !
Followed your advice and downloaded version 2.8.0 (linux).
Installed it, hooked up the stlink clone and the MCU, clicked connect and voila,
it's working. And it is working every time after (physical) disconnect / connect.
Thank you, again !
2023-12-09 06:20 AM
Thanks for confirmation of that. Happy programming.