AnsweredAssumed Answered

F103C8T6

Question asked by g. lewis on Mar 2, 2017
Latest reply on Apr 25, 2017 by g. lewis

I encounter debug problems when trying  to make blink an LED of a board that include a STM32F103C8T6.

I set up the hardware firmware (GPIOs) with the program STM32CubeMx, and wrote two lines code to make the led blink:

      HAL_GPIO_TogglePin(LD2_GPIO_Port,LD2_Pin);
      HAL_Delay(1000);

Simple.

Then I build the project which was ok

But when I tried to debug here is the error message I got:

 

 

Once I run it the console message is:

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: read version failed
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked

 

Any idea what could cause the problem?

Thanks

Outcomes