2024-09-10 05:24 AM
I am new to stm32F103F103c8t6. I am using Bluepill. In OpenOCD i get:
Open On-Chip Debugger 0.12.0+dev-00597-ga5a21219f (2024-06-03-11:04) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J45S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.271571
Error: init mode failed (unable to connect to the target)
Does this mean the Bluepill IC is fake.
If I compile and upload the *.Hex file using STM32 ST-Link Utility then it gets programmed and the pr0ram works ok.
Can you please help me as how to use OenOCd for debugging.
2024-09-10 06:15 AM
Welcome @spruhaelec, to the community!
Yes, this is due to the counterfeit STM32F103. Incidentally, the STLink utility has long been NRND (Not Recommended for New Designs). If you replace the counterfeit STM32F103 with an original one, the problems should be solved. However, you probably won't be able to get genuine goods on eBay and similar platforms.
Good luck!
Peter