-
Download OpenOCD.
-
Place the folder in
~/openocd- so that thescriptsis directly under~/openocd/scripts. -
Add it to your PATH via:
ln -s ~/openocd/bin/openocd /usr/local/bin/openocd
-
Make sure no applications are bound to port 3333.
-
Place
launch.jsonandtasks.jsonin your.vscodefolder.
Note: Set the right path in debugServerArgs.