I have ST-link/V2 and my board is stm32l072 for which I have upgraded the firmware to the latest.
I took the code to study for my B.F, but the development environment did not tell
So i have problem for ‘target halted’
here is the bug consoles
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)
Licensed under GNU GPL v2
For bug reports, read
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 speed: 4000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 4000 kHz
Info : STLINK v2 JTAG v33 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.238896
Info : Stlink adapter speed set to 4000 kHz
Info : STM32L072CZYx.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
Info : accepting ‘gdb’ connection on tcp/3333
Error: timed out while waiting for target halted
TARGET: STM32L072CZYx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Warn : Cannot identify target as a STM32L family.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use ‘gdb_memory_map disable’.
Error: attempted ‘gdb’ connection rejected
i think the problem is development envirmont is not same as my friend’s
here is the question
1) Is there a program I need to link Eclipse with STlink?
2) If it is not, how do i solve this problem