

The J-Link is widely available and the EDU only costs $20 or €20, is very small and universally works for many, many devices out of the box. Technically it should be possible to use other probes too. In this article I’m using a SEGGER J-Link EDU Mini debug probe.

I’m using SWD here because the FRDM-K22F only has SWD available on the debug header, but JTAG could be used too. Debugging is through a debug probe (J-Link), either external (standalone debug probe) or on-board (available with many development boards e.g. For this I need the tools and extensions installed in Part 1 of this tutorial series. In this article I show how to debug an ARM Cortex (M4F, NXP K22FN512) microcontroller with the Microsoft Visual Studio Code. This one is about debugging an ARM Cortex-M Microcontroller with Visual Studio Code: Cortex-M4 (NXP K22FN512) Debugging with Visual Studio Code Outline The previous parts were about installation, project setup and building.
