Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Debugging in VSCode and Spresense SDK
-
Hello - I'm trying to run the VSCode debugger using the following steps.
- vscode: Right click project, select Sprense: Build and Flash
- vscode: run->start debug
But I get the following error:
Waiting for gdb server to start...[2022-06-10T12:45:29.947Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
usr/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s ../git/spresense/sdk/tools -f .vscode/extensions/marus25.cortex-debug-1.4.4/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f cxd5602.cfg
Open On-Chip Debugger 0.10.0+dev-00948-g7542ae67 (2019-11-25-05:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
CDRTOSConfigure
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: unable to find CMSIS-DAP deviceHow do i got about debugging a Spresense SDK app within VSCode? Thanks!
-
Hello, @Stanton
This section in our documentation talks about how to debug with ICE
https://developer.sony.com/develop/spresense/docs/sdk_set_up_ide_en.html#_ice_debugging