I try to debug the simple example of /gap_sdk/examples/pmsis/periph/uart/uart_helloworld using VSCode as described in the VSCode Integration sectoin of the manual. However, there seem to be no configuration for GAP8 when I generate the VSCode files for it.
So I edit the generated fines accordingly to the command that is issued to run the example (which works ok).
From:
Open On-Chip Debugger 0.10.0+dev-gb84d97ec4 (2022-02-28-10:56)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
DEPRECATED! use 'adapter speed' not 'adapter_khz'
DEPRECATED! use 'adapter driver' not 'interface'
Warn : Interface already configured, ignoring
TARGET create
Info : core 0 selected
0
Info : gap8_adv_debug_itf tap selected
Info : adv_dbg_unit debug unit selected
Info : Option 7 is passed to adv_dbg_unit debug unit
GAP8 INIT TARGET
Info : J-Link V11 compiled Dec 9 2021 14:14:49
Info : Hardware version: 11.00
Info : VTarget = 1.812 V
Info : clock speed 1500 kHz
Info : JTAG tap: gap8.cpu tap/device found: 0x149511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x1)
GAP8 examine target
Init jtag
Initialising GAP8 JTAG TAP
Info : adv debug unit is configured with option BOOT MODE JTAG
Info : adv debug unit is configured with option ADBG_USE_HISPEED
Info : starting gdb server for gap8.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
A following up question: could we debug our application that would be run under the GVSOC simulator? If yes, how could we do that? I tried similar steps but it doesn't work.
I try to debug the simple example of
/gap_sdk/examples/pmsis/periph/uart/uart_helloworld
using VSCode as described in theVSCode Integration
sectoin of the manual. However, there seem to be no configuration for GAP8 when I generate the VSCode files for it. So I edit the generated fines accordingly to the command that is issued to run the example (which works ok). From:to:
Executing the task in VSCode runs well
I also edited the
launch.json
as suggested:But VSCode fails at the very begging:![vscode_debug_error](https://user-images.githubusercontent.com/97178967/157541321-e3b63134-f5b9-410d-ae53-757def4d19ae.png)
Can you point me to what is wrong here? Is there official support for GAP8 currently?