首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在FTDI SWD模式下使用OpenOCD调试ARM Cortex-M33时出现‘未定义调试原因7-目标需要重置’错误

在FTDI SWD模式下使用OpenOCD调试ARM Cortex-M33时出现‘未定义调试原因7-目标需要重置’错误
EN

Stack Overflow用户
提问于 2020-04-17 12:48:19
回答 1查看 430关注 0票数 1

我目前正在使用OpenOCD调试Cortex-M33处理器。但是,在它连接到gdb并开始调试后,它会显示以下消息:

代码语言:javascript
复制
Try to search windows process
Found openocd running, Kill it
SUCCESS: The process "openocd.exe" with PID 18768 has been terminated.
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
adapter speed: 1000 kHz
adapter_nsrst_delay: 200
cortex_mX3 reset_config sysresetreq
Info : clock speed 1000 kHz
Info : SWD DPIDR 0x6ba02477
Info : rtl8722csm.cpu: hardware has 2 breakpoints, 1 watchpoints
Info : accepting 'gdb' connection on tcp/3333
undefined debug reason 7 - target needs reset
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000100 msp: 0x0008fffc
Error: address + size wrapped (0xfffffffe, 0x00000004)
Error: address + size wrapped (0xfffffffe, 0x00000004)
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0x00000000
Info : SWD DPIDR 0x6ba02477
Error: Failed to read memory at 0x00000000
Polling target rtl8722csm.cpu failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Info : rtl8722csm.cpu: hardware has 2 breakpoints, 1 watchpoints
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x0c004132 psp: 0x00089a58
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000100 msp: 0x0008fffc

我不太熟悉OpenOCD设置,那么这个“调试原因7”问题的可能原因是什么,或者我如何确定问题的原因?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2021-05-14 16:34:06

"reason 7“是DBG_REASON_EXC_CATCH,意思是OpenOCD捕获了一个异常。我不知道你是如何执行你的OpenOCD的,但似乎发生了一些不好的事情。重置你的目标看看会发生什么。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61264345

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档