ESP-IDF单步调试问题求教

lxd2757
Posts: 1
Joined: Thu Jun 06, 2024 11:47 am

ESP-IDF单步调试问题求教

Postby lxd2757 » Thu Jun 06, 2024 12:02 pm

操作系统:WIN 10
开发环境:VSCode(1.90.0)+ESP-IDF(1.7.1)
SDK:5.2.2

新手,在淘宝买了一套开发板(https://item.taobao.com/item.htm?_u=63g ... 1910969830),想做LVGL的开发,现在想做单步调试,完全找不到方向,不知道怎么进行,查了一些资料,现在OPENOCD已经正常了,但是一开始调试就弹出错误提示:Unable to start debugging. Unexpected GDB output from command-interpreter-exec console "mon reset halt"", "monitor" command not supported bythis target. 打开“launch.json"


目前的Launch.json文件也是网上查到的例子:
{
"configurations": [
{
"name": "ESP32-S3 DEBUG",
"type": "cppdbg",
"request": "launch",
"MIMode": "gdb",
"miDebuggerPath": "${command:espIdf.getXtensaGdb}",
"program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf",
"windows": {
"program": "${workspaceFolder}\\build\\${command:espIdf.getProjectName}.elf"
},
"cwd": "${workspaceFolder}",
"environment": [{ "name": "PATH", "value": "${config:idf.customExtraPaths}" }],
"setupCommands": [
{ "text": "set remotetimeout 20" },
],
"postRemoteConnectCommands": [
{ "text": "mon reset halt" },
{ "text": "maintenance flush register-cache"},
],
"externalConsole": false,
"logging": {
"engineLogging": true
}
}
]
}

请教:我要想单步调试,Launch.json文件要怎么修改?有没有Launch.json详细说明的文档?
是否还需要补充什么说明。
感激不尽。

Who is online

Users browsing this forum: No registered users and 184 guests