0
\$\begingroup\$

I now this is something simple but I haven't been able to find an answer to my problem, also this is the first time that I am trying to use this line of mcus and I have been trying to solve this problem for a few days, so any help is appreciated.

I am using cubeMX to generate code to use the board as a usb HID and am using sw4stm32 to write everything else. When I try to flash the mcu, using a st-link v2 I get this text:

Open On-Chip Debugger 0.10.0-dev-00015-gaaf1808 (2018-11-13-13:07)

Licensed under GNU GPL v2

For bug reports, read http://openocd.org/doc/doxygen/bugs.html

srst_only separate srst_nogate srst_open_drain connect_assert_srst

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

adapter_nsrst_delay: 100

adapter speed: 950 kHz

Info : clock speed 950 kHz

Info : STLINK v2 JTAG v31 API v2 SWIM v7 VID 0x0483 PID 0x3748

Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748

Info : using stlink api v2

Info : Target voltage: 3.289906

Info : Stlink adapter speed set to 950 kHz

Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpoints

Info : Stlink adapter speed set to 950 kHz

adapter speed: 950 kHz

Error: timed out while waiting for target halted

TARGET: STM32F103C8Tx.cpu - Not halted

in procedure 'program'

in procedure 'reset' called at file "embedded:startup.tcl", line 490

in procedure 'ocd_bouncer'

** Unable to reset target **

shutdown command invoked

I am trying to use this board: https://stm32-base.org/boards/STM32F103C8T6-Blue-Header and have the connections between the board and st link like this:

ST-link - Dev Board

swdio - pa13

GND - GND

SWCLK - pa14

3.3 - 3.3

I'm powering the board temporarily though the st link because I am just trying to flash it. also I tried flashing it with BOOT0 tide to GND, short on the jumper j6, and without the short but neither worked. can someone help me figure out this problem. Up to now I've only used Microchip MCUs and I haven't run into this kind of problem.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.