so i’ve used what you said above
-c “telnet_port 4444” -f “interface/stlink-v2.cfg” -f “target/stm32f1x_stlink.cfg”
and get this
Open On-Chip Debugger 0.7.0 (2013-05-05-10:41)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : This adapter doesn’t support configurable speed
Info : STLINK v2 JTAG v16 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : Target voltage: 3.223037
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
This looks ok so far, but when i now start the debugger i get this
requesting target halt and executing a soft reset
requesting target halt and executing a soft reset
Error: timed out while waiting for target halted
in procedure ‘wait_halt’
background polling: on
TAP: stm32f1x.cpu (enabled)
target state: unknown
Info : device id = 0x10006430
Info : flash size = 512kbytes
flash ‘stm32f1x’ found at 0x08000000
Error: Target not halted
stm32x mass erase failed
in procedure ‘stm32f1x’
Error: Target not halted
Error: error writing to flash at address 0x08000000 at offset 0x00000000
in procedure ‘flash’
requesting target halt and executing a soft reset
The debugger init commands that are used by chiboisOS are
set remotetimeout 1000
monitor soft_reset_halt
monitor soft_reset_halt
monitor wait_halt
monitor poll
monitor flash probe 0
monitor stm32f1x mass_erase 0
monitor flash write_bank 0 build/ch.bin 0
monitor soft_reset_halt