stm32f103c8t6 doesn't halt nor reset
stm32f103c8t6 board, using st-linkV2
,Windows 10 Home x64, Eclipse Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600, AC6.
Hi,
I’m new to ARM, my knowledge comes from self learning, I’ve programmed several 8051 and AVR CPUs and I want to make the step toward the future at last.
I’ve dowloaded Arduino IDE and managed to throw a piece of firmware on the chip (simple PC13 blink).
When I try to program or debug the MCU using Eclipse which I’ve downloaded from here I get these errors:
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
Info : STLINK v2 JTAG v27 API v2 SWIM v6 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.210554
Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Info : device id = 0x20036410
Info : flash size = 64kbytes
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: Target not halted
Error: failed erasing sectors 0 to 3
Error: flash_erase returned -304
The config scripts I’m using is stock ST_LinkV2 and the attached one.
I can talk to the board with STM32 ST-LINK Utility no problems.
What am I missing?
I’ve already gone back and fourth on that for 3 days. Please help a desperate man!
Much Appreciated,
Chen