Unable to start debugging

When starting debug inside VC I get this:

My launch.json looks like this:

{
	"folders": [
		{
			"path": "."
		},
		{
			"path": "../ncs"
		},
		{
			"path": "../lbs"
		}
	],
	"settings": {
		"nrf-connect.applications": [
			"${workspaceFolder}\\bluejay"
		],
		"nrf-connect.toolchain.path": "${nrf-connect.toolchain:2.5.1}",
		"files.associations": {
			"array": "c",
			"string_view": "c",
			"initializer_list": "c"
		},
		"nrf-connect.debugging.bindings": {
			"${workspaceFolder}/bluejay/b_ida0105_project": "Launch b_ida0105_project"
		}
	},
	"launch": {
		"version": "0.2.0",
		"configurations": [
			{
				"type": "nrf-connect",
				"request": "launch",
				"name": "Launch b_ida0105_project",
				"config": "${workspaceFolder}/bluejay/b_ida0105_project",
				"runToEntryPoint": "main"
			},
			{
				"type": "nrf-connect",
				"request": "launch",
				"name": "Launch b_ida0105_wp2_no_secure",
				"config": "${workspaceFolder}/bluejay/b_ida0105_wp2_no_secure",
				"runToEntryPoint": "main"
			}
		]
	}
}

I use nRF v2.5.1.

Segger j-link base.

Debug works on the nRF eval/DK boards.

I can run "west debug" and debug in gdb.

Programming works fine in all cases.

Parents Reply
  • I tried starting debugging while having windows dbgview running.

    It seems jlinkgdbserver is started with a target SWD speed of 12000kHz:

    MS_MIDebug: 1: (124) Starting: "C:\Program Files\SEGGER\JLink\JLinkGDBServerCL.exe" -if swd -device nRF52832_xxAA -select usb=50123743 -speed 12000 -port 49330 -singlerun -nogui -halt -noir -silent -rtos c:/Users/tnielsen/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.11.301-win32-x64/debug/jlink/x64/zephyr_rtos.dll

    This is too fast for my target setup -  I tried starting jlink with 12000kHz and the target could not connect.

    How do I change that?

    Rgds Tage

Children
Related