Eclipse GDB与OpenOCD结合使用

时间:2013-01-18 10:15:12

标签: eclipse eclipse-cdt stm32 openocd

我正在使用eclipse CDTstm32f0-discovery制作软件我使用ST-link使用usb对此控制器进行编程。

几天前,我使用OpenOCD6.0.1 i调试了我的芯片,我按照本教程进行了操作:

debugger tutorial

几个小时之后,我得到了这个工作能够实现我的程序设置断点和所有其他ussual调试的东西。现在,这是奇怪的事情发生了。我开始从 - >更改我的配置监视器重置停止 - >监视器soft_reset_halt。我这样做是因为我最终想开发一个带有stm32f0系列芯片的电路板,我可以用三条线编程(SWD编程)。因为我没有让它工作,我恢复了设置以监视重置停止。

今天我想调试我的芯片,然后遇到以下情况,当我开始调试eclipse时,我的设备处于其重置处理程序中(由于monitor reset halt命令,这似乎对我来说)openocd输出在这一点上是:

Open On-Chip Debugger 0.6.1 (2012-10-07-10:34)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.sourceforge.net/doc/doxygen/bugs.html
adapter speed: 1000 kHz
srst_only separate srst_nogate srst_open_drain
Info : clock speed 1000 kHz
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting 'gdb' connection from 3333
Info : device id = 0x20006440
Info : flash size = 64kbytes
Warn : acknowledgment received, but no packet pending
undefined debug reason 6 - target needs reset
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x0800291c msp: 0x20002000
Info : Padding image section 0 with 4 bytes
target state: halted
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20002000
Warn : stepi ignored. GDB will now fetch the register state from the target.

现在,我想跨过重置处理程序来启动我的程序,然后我收到此警告:

  

警告:stepi被忽略了。 GDB现在将从中获取寄存器状态   目标

经过一些谷歌搜索后,我无法找到导致这种情况的因素。有没有人有解决这个问题的线索。

0 个答案:

没有答案