You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update IDE 2.x J-Link tutorial for new debug_custom.json data format
A major reworking of the Arduino IDE 2.x debugger configuration system was released in Arduino IDE 2.3.0. This included
a breaking change to the data structure of the debug_custom.json file that allows the user to adjust the debugger
configuration.
The tutorial for using the Arduino IDE 2.x debugger with a J-Link debug probe requires the use of the debug_custom.json
feature. The change to the file's data structure rendered that part of the tutorial outdated. It is hereby updated to
use the new data structure.
Including instructions for the different debug_custom.json structure that would be required for users of versions of
Arduino IDE 2.x older than 2.3.0 would have added significant complexity to an already dense tutorial, making it
significantly less approachable to the reader and prone to misinterpretation. For this reason, the decision was made to
specify a requirement of Arduino IDE 2.3.0 as the minimum for the tutorial.
Copy file name to clipboardExpand all lines: content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-jlink-setup/mkr-jlink.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: This tutorial teaches you how to set up a MKR board with the Segger
9
9
This tutorial will show you how to debug an Arduino sketch using an Arduino MKR board and the Segger J-Link probe. It will go through how to connect these and use the Arduino IDE 2 to then debug a sketch.
10
10
11
11
### Required Hardware and Software
12
-
-[Arduino IDE 2](https://www.arduino.cc/en/software)
12
+
-[Arduino IDE](https://www.arduino.cc/en/software) version 2.3.0 or higher
13
13
- Segger J-link device ([EDU](https://store.arduino.cc/products/j-link-edu) or [BASE](https://store.arduino.cc/products/j-link-base-compact))
14
14
-[Arduino MKR WiFi 1010](https://store.arduino.cc/mkr-wifi-1010) (other boards from the MKR family works as well).
15
15
- Soldering equipment
@@ -72,14 +72,19 @@ Select **Tools > Programmer > Segger J-Link** from the Arduino IDE menus.
72
72
Now go to the folder where the sketch is located. Add a `.json` file in the same folder as your sketch and name it `debug_custom.json`. The easiest way would be to create a text file and rename it `debug_custom.json`. In the `.json` file, add the following lines:
If you are using a board other than the **MKR WiFi 1010**, you will need to adjust the `arduino:samd:mkrwifi1010` part of the `configId` field. Hover the mouse pointer over the board selection in the Arduino IDE toolbar in order to learn the correct identifier for the board you are using.
87
+
83
88
The `"serverpath"` field needs to be set to the path of the "J-Link GDB Server CL" tool executable file that is located under the folder of the J-Link package you installed in the previous step. The file is named:
84
89
85
90
-**If you are using Windows:**`JLinkGDBServerCL.exe`
0 commit comments