Hi everyone,
My workstation is a linux mint 20.3 box.
I have visual studio code 1.65.2 installed.
I have installed all prerequisites through the esp32 plugin.
I have a ESP32-rover-kit dev board ver 4.1 .
I have installed openocd : Open On-Chip Debugger v0.11.0-esp32-20211220 (2021-12-20-15:42)
I had to create udev rules file. I created a file named 90-esp32-rover-kit.rules and i appended the following line of text:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", GROUP="plugdev", MODE="0666"
I added the "0403" & "6010" based on the data i saw from a lsusb command results.
I used the command "sudo udevadm control --reload-rules && udevadm trigger" to reload udev rules.
When i launch opencd i can see the following in the tab "OUTPUT":
Open On-Chip Debugger v0.11.0-esp32-20211220 (2021-12-20-15:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
adapter speed: 20000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 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), part: 0x2003, ver: 0x1)
Info : esp32.cpu0: Target halted, PC=0x400E78E6, debug_reason=00000001
Info : esp32.cpu1: Target halted, PC=0x400E78E6, debug_reason=00000000
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
So far i can build / flash & monitor just fine using the UART or JTAG.
My launch.json file has the following:
{
"version": "0.2.0",
"configurations": [
{
"type": "espidf",
"name": "OpenOCD",
"request": "launch",
"debugPort": 3333,
"logLevel": 2,
"mode": "manual",
"verifyAppBinBeforeDebug": false,
"tmoScaleFactor": 1,
"initGdbCommands": [
"target remote :3333",
"symbol-file /build/interrupts-test.elf",
"set remote hardware-watchpoint-limit 2",
"monitor reset halt",
"flushregs",
"thb app_main"
],
"env": {
"CUSTOM_ENV_VAR": "SOME_VALUE"
}
}
]
}
When i reach the point where i click on the button "Run & Debug" (Ctrl+Shift+D) i can see some activity in the tab "OUTPUT" which looks like this:
*This follows after the line "Info : Listening on port 3333 for gdb connections" given above.
Warn : ignoring character 0x43
Warn : ignoring character 0x6f
Warn : ignoring character 0x6e
Warn : ignoring character 0x74
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x74
Warn : negative acknowledgment, but no packet pending
Warn : ignoring character 0x4c
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x67
Warn : ignoring character 0x74
Warn : ignoring character 0x68
Warn : ignoring character 0x3a
Warn : ignoring character 0x20
Warn : ignoring character 0x34
Warn : ignoring character 0x30
Warn : ignoring character 0x37
Warn : ignoring character 0xd
Warn : ignoring character 0xa
Warn : ignoring character 0xd
Warn : ignoring character 0xa
Warn : ignoring character 0x7b
Warn : ignoring character 0x22
Warn : ignoring character 0x63
Warn : ignoring character 0x6f
Warn : ignoring character 0x6d
Warn : ignoring character 0x6d
Warn : ignoring character 0x61
Warn : ignoring character 0x6e
Warn : ignoring character 0x64
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x69
Warn : ignoring character 0x6e
Warn : ignoring character 0x69
Warn : ignoring character 0x74
Warn : ignoring character 0x69
Warn : ignoring character 0x61
Warn : ignoring character 0x6c
Warn : ignoring character 0x69
Warn : ignoring character 0x7a
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x61
Warn : ignoring character 0x72
Warn : ignoring character 0x67
Warn : ignoring character 0x75
Warn : ignoring character 0x6d
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x7b
Warn : ignoring character 0x22
Warn : ignoring character 0x63
Warn : ignoring character 0x6c
Warn : ignoring character 0x69
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x74
Warn : ignoring character 0x49
Warn : ignoring character 0x44
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x76
Warn : ignoring character 0x73
Warn : ignoring character 0x63
Warn : ignoring character 0x6f
Warn : ignoring character 0x64
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x63
Warn : ignoring character 0x6c
Warn : ignoring character 0x69
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x74
Warn : ignoring character 0x4e
Warn : ignoring character 0x61
Warn : ignoring character 0x6d
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x56
Warn : ignoring character 0x69
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x61
Warn : ignoring character 0x6c
Warn : ignoring character 0x20
Warn : ignoring character 0x53
Warn : ignoring character 0x74
Warn : ignoring character 0x75
Warn : ignoring character 0x64
Warn : ignoring character 0x69
Warn : ignoring character 0x6f
Warn : ignoring character 0x20
Warn : ignoring character 0x43
Warn : ignoring character 0x6f
Warn : ignoring character 0x64
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x61
Warn : ignoring character 0x64
Warn : ignoring character 0x61
Warn : ignoring character 0x70
Warn : ignoring character 0x74
Warn : ignoring character 0x65
Warn : ignoring character 0x72
Warn : ignoring character 0x49
Warn : ignoring character 0x44
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x65
Warn : ignoring character 0x73
Warn : ignoring character 0x70
Warn : ignoring character 0x69
Warn : ignoring character 0x64
Warn : ignoring character 0x66
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x70
Warn : ignoring character 0x61
Warn : ignoring character 0x74
Warn : ignoring character 0x68
Warn : ignoring character 0x46
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x6d
Warn : ignoring character 0x61
Warn : ignoring character 0x74
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x70
Warn : ignoring character 0x61
Warn : ignoring character 0x74
Warn : ignoring character 0x68
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x6c
Warn : ignoring character 0x69
Warn : ignoring character 0x6e
Warn : ignoring character 0x65
Warn : ignoring character 0x73
Warn : ignoring character 0x53
Warn : ignoring character 0x74
Warn : ignoring character 0x61
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x41
Warn : ignoring character 0x74
Warn : ignoring character 0x31
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x63
Warn : ignoring character 0x6f
Warn : ignoring character 0x6c
Warn : ignoring character 0x75
Warn : ignoring character 0x6d
Warn : ignoring character 0x6e
Warn : ignoring character 0x73
Warn : ignoring character 0x53
Warn : ignoring character 0x74
Warn : ignoring character 0x61
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x41
Warn : ignoring character 0x74
Warn : ignoring character 0x31
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x70
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x56
Warn : ignoring character 0x61
Warn : ignoring character 0x72
Warn : ignoring character 0x69
Warn : ignoring character 0x61
Warn : ignoring character 0x62
Warn : ignoring character 0x6c
Warn : ignoring character 0x65
Warn : ignoring character 0x54
Warn : ignoring character 0x79
Warn : ignoring character 0x70
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x70
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x56
Warn : ignoring character 0x61
Warn : ignoring character 0x72
Warn : ignoring character 0x69
Warn : ignoring character 0x61
Warn : ignoring character 0x62
Warn : ignoring character 0x6c
Warn : ignoring character 0x65
Warn : ignoring character 0x50
Warn : ignoring character 0x61
Warn : ignoring character 0x67
Warn : ignoring character 0x69
Warn : ignoring character 0x6e
Warn : ignoring character 0x67
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x70
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x52
Warn : ignoring character 0x75
Warn : ignoring character 0x6e
Warn : ignoring character 0x49
Warn : ignoring character 0x6e
Warn : ignoring character 0x54
Warn : ignoring character 0x65
Warn : ignoring character 0x72
Warn : ignoring character 0x6d
Warn : ignoring character 0x69
Warn : ignoring character 0x6e
Warn : ignoring character 0x61
Warn : ignoring character 0x6c
Warn : ignoring character 0x52
Warn : ignoring character 0x65
Warn : ignoring character 0x71
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x73
Warn : ignoring character 0x74
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x6c
Warn : ignoring character 0x6f
Warn : ignoring character 0x63
Warn : ignoring character 0x61
Warn : ignoring character 0x6c
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x65
Warn : ignoring character 0x6c
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x70
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x50
Warn : ignoring character 0x72
Warn : ignoring character 0x6f
Warn : ignoring character 0x67
Warn : ignoring character 0x72
Warn : ignoring character 0x65
Warn : ignoring character 0x73
Warn : ignoring character 0x73
Warn : ignoring character 0x52
Warn : ignoring character 0x65
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x69
Warn : ignoring character 0x6e
Warn : ignoring character 0x67
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x70
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x49
Warn : ignoring character 0x6e
Warn : ignoring character 0x76
Warn : ignoring character 0x61
Warn : ignoring character 0x6c
Warn : ignoring character 0x69
Warn : ignoring character 0x64
Warn : ignoring character 0x61
Warn : ignoring character 0x74
Warn : ignoring character 0x65
Warn : ignoring character 0x64
Warn : ignoring character 0x45
Warn : ignoring character 0x76
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x74
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x75
Warn : ignoring character 0x70
Warn : ignoring character 0x70
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x74
Warn : ignoring character 0x73
Warn : ignoring character 0x4d
Warn : ignoring character 0x65
Warn : ignoring character 0x6d
Warn : ignoring character 0x6f
Warn : ignoring character 0x72
Warn : ignoring character 0x79
Warn : ignoring character 0x52
Warn : ignoring character 0x65
Warn : ignoring character 0x66
Warn : ignoring character 0x65
Warn : ignoring character 0x72
Warn : ignoring character 0x65
Warn : ignoring character 0x6e
Warn : ignoring character 0x63
Warn : ignoring character 0x65
Warn : ignoring character 0x73
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x74
Warn : ignoring character 0x72
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x7d
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x74
Warn : ignoring character 0x79
Warn : ignoring character 0x70
Warn : ignoring character 0x65
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x22
Warn : ignoring character 0x72
Warn : ignoring character 0x65
Warn : ignoring character 0x71
Warn : ignoring character 0x75
Warn : ignoring character 0x65
Warn : ignoring character 0x73
Warn : ignoring character 0x74
Warn : ignoring character 0x22
Warn : ignoring character 0x2c
Warn : ignoring character 0x22
Warn : ignoring character 0x73
Warn : ignoring character 0x65
Warn : ignoring character 0x71
Warn : ignoring character 0x22
Warn : ignoring character 0x3a
Warn : ignoring character 0x31
Warn : ignoring character 0x7d
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1315 ms). Workaround: increase "set remotetimeout" in GDB
I tried adding "set remotetimeout 10" in my launch.json but that doesn't seem to work.
Although i have created one or more breakpoints i see nothing that indicates execution having stopped at any of my breakpoints.
Can any one help?
Thanks and regards
Manos
Debugging on Visual Studio Code doesn't work
-
- Posts: 1
- Joined: Sun Mar 27, 2022 9:22 pm
Who is online
Users browsing this forum: Google [Bot] and 76 guests