hungchieh1029 发表于 2017-12-2 15:09:01

System Workbench for STM32 + ST-LINK V2 有問題


各位先知,

小弟有問題一直無法解決
System Workbench for STM32 + ST-LINK V2
要進入Debug Mode的時候都會出現錯誤的訊息,導致無法使用debug mode

請問一下,是否有人可以幫忙指點迷津?


的對話框訊息如下

Open On-Chip Debugger 0.10.0-dev-00267-g884c33c (2016-03-16-12:22)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
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 v29 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.216252
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Error: timed out while waiting for target halted
TARGET: stm32f1x.cpu - Not halted
in procedure 'reset'
in procedure 'ocd_bouncer'



Info : device id = 0x10016418
Info : flash size = 256kbytes
Error: timed out while waiting for target halted
TARGET: stm32f1x.cpu - Not halted
in procedure 'reset'
in procedure 'ocd_bouncer'


Error: timed out while waiting for target halted
TARGET: stm32f1x.cpu - Not halted
in procedure 'reset'
in procedure 'ocd_bouncer'



Error: Target not halted
Error: failed erasing sectors 0 to 6
Error: flash_erase returned -304








huzhill 发表于 2017-12-4 13:36:03

调试设置里面 有一个 hardware reset 要改成 software system reset

hungchieh1029 发表于 2017-12-4 20:54:07

huzhill大神,

照你的指示,已經可以用了
页: [1]
查看完整版本: System Workbench for STM32 + ST-LINK V2 有問題