I bought a blue pill that I tried to program using STLink on CubeMX IDE.
I got this:
Warn : UNEXPECTED idcode: 0x2ba01477 Error: expected 1 of 1: 0x1ba01477
I checked on the internet and I found that it's a fake one. I got the idea to edit the stm32f1.cfg file so I changed
set _CPUTAPID 0x2ba01477
to
set _CPUTAPID 0x1ba01477
It worked perfectly the first time, but after a couple of seconds the green LED turned on and now the problem I have is:
Error: init mode failed (unable to connect to the target)
Any help please? I can't afford another blue pill for the moment and I really need it for my studies.