如何解决无法对 micropython esp32 端口进行调试
我在 WSL 上运行的 Ubuntu 20.04 上设置了 micropython esp32 端口。我可以从命令行构建和刷新 Wroom32,没有任何问题。我正在尝试通过 Segger J-Link 接口使用 OpenOCD 调试 micropython。
我在 Windows 上安装了 OpenOCD,它检测到 J-Link。
> openocd -s share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg
Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:57)
Licensed under GNU GPL v2
For bug reports,read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 100 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link ARM V8 compiled Nov 28 2014 13:44:46
Info : Hardware version: 8.00
Info : VTarget = 3.338 V
Info : clock speed 100 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica),part: 0x2003,ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica),ver: 0x1)
Info : Detected debug stubs @ 3ffc3560 on core1 of target 'esp32'
Info : Listening on port 3333 for gdb connections
接下来,我尝试通过 Eclipse 和 VS Code 运行 xtensa-esp32-elf-gdb
。
注意:Eclipse 是使用 XLaunch 从 Ubuntu 中启动的,我为 VS Code(在 Windows 上运行)安装了远程调试扩展包。
这是我的 VSCode 启动配置。
{
"version": "0.2.0","configurations": [
{
"name": "Debug","type": "gdb","request": "launch","target": "micropython/ports/esp32/build-GENERIC/application.elf","cwd": "${workspaceRoot}","valuesFormatting": "parseText","gdbpath": "xtensa-esp32-elf-gdb","autorun": [
"target remote :3333","mon reset halt","flushregs","thb app_main","c"
],}
]
}
调试器似乎没有从这一点向前推进,我似乎无法弄清楚原因。我错过了什么吗? 另请注意,我是固件开发的新手。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。