J-Link Arm Keil Studio Pack

From SEGGER Knowledge Base
Jump to navigation Jump to search

Debugging with J-Link

Arm Keil Studio Pack (MDK v6) is a set of extensions for Microsoft Visual Studio Code that allows to develop, flash and debug embedded and IoT applications fro ARM-based microcontroller devices. Arm Keil Studio Pack is easy to configure and use. It supports J-Link via CMSIS-DAP interface.

Requirements

  1. Microsoft Visual Studio Code (link)
  2. Arm Keil Studio Pack (MDK v6) Plugins
  3. J-Link with CMSIS-DAP support: J-Link BASE, J-Link PLUS, J-Link EDU, J-Link ULTRA+ and J-Link PRO (check CMSIS-DAP support on product web page)
  4. J-Link Software and Documentation Pack (link)

Switching J-Link to CMSIS-DAP mode

In order to debug with Arm debugger + J-Link setup, J-Link must be switched to CMSIS-DAP mode.

To do this, follow Switching J-Link to CMSIS-DAP mode guide:

Microsoft Visual Studio Code Setup

Once Visual Studio Code and Arm Keil Studio plugins are installed, start Visual Studio Code.
In tab "Device manager" click "Add Device" button:

Arm keil studio how to 5.png

In command menu in the top middle select connected J-Link:

Arm keil studio how to 6.png

Check added J-Link probe is selected:

Arm keil studio how to 7.png

Now, a solution/project can be created. After that, open solution settings and set "Run" configuration to "Flash device" and "Debug" configuration to Arm debugger:

Arm keil studio how to 8.png

Now the application can be programmed into the selected device and then debugged using J-Link.

Arm keil studio how to 9.png

Additional information

All other information about using the extensions can be found on the ARMs web site.