Skip to main content
Visitor II
September 10, 2024
Question

STM32cubeIDE with stm32f103c8t6 openocd

  • September 10, 2024
  • 1 reply
  • 1301 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 10, 2024

    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