AnsweredAssumed Answered

Weird behavior on STM32f103C8T6 (blue pill) trying to use OpenOCD

Question asked by Alexander Hoffman on Sep 13, 2017
Latest reply on Nov 13, 2017 by messaoud.anis

Hi all,


I am using a STM32f103C8T6 (blue pill), one of these $2 ebay boards, and I am having a really hard time getting some sort of dev environment set up with it.


I seem to have finally be able to get it to consistently program by setting the boot0 jumper to 1 and the boot1 jumper to 0, building my code in system workbench then flashing through the command like using stlink. So as it stand the board is not totally useless but I have no be able to get any debugging working. The closes I have to getting debugging working is to run openocd from the command line then I can run the debugger in system workbench. It successfully breaks at main but after 2 steps it given "Error: JTAG failure -4" error through the opeocd terminal and system workbench debugger just hangs. I don't really have much experience with command line debugging and would really like to be able to debug in system workbench. 

Does anyone have any idea's how to solve this issue or had any success with this board?


On a side note, I do not have any problems with any of my otherboard with onboard debuggers so I don't think it is an issue with my system. More so the configuring for this board.