Skip to content

Commit 159353c

Browse files
committed
Add instructions for selecting debug probe from "Programmer" menu in IDE 2.x debugger tutorials
A major reworking of the debugger configuration system was released in Arduino IDE 2.3.0. One of the user facing changes is the ability to configure the IDE for the debug probe hardware in use via the "Tools > Programmer" menu selection. As a side effect of that change, it is now mandatory for the user to make the appropriate selection from that menu in order to use the debugger. If no selection is made, the IDE disables the "Start Debugging" button. For this reason, it will be important for the debugger tutorials to include this. Arduino IDE versions prior to 2.3.0 did not use the "Programmer" selection for configuration of the debugger. Although selecting a programmer before starting the debugger is not mandatory for users of older versions of the IDE, it also will not cause any harm and that menu was present in those versions of the IDE as well. So the inclusion of a "Programmer" menu selection step in the tutorials does not break their compatibility with previous versions of Arduino IDE 2.x.
1 parent 4e8d2d8 commit 159353c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Diff for: content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/atmel-ice/using-an-atmel-ice-with-the-ide-v2.md

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ Let's start by opening the Arduino IDE 2 and connecting our MKR WiFi 1010 board
115115

116116
![The board and port recognized by the Arduino IDE 2.](assets/ide_v2_t1_img05.png)
117117

118+
Select **Tools > Programmer > Atmel-ICE** from the Arduino IDE menus.
119+
118120
### 2. Creating the Test Code
119121

120122
Let's try the example code show below, it is a simple program that blinks the onboard LED of our board and changes the value of variables `x` and `y` while running. Open a new sketch, copy and paste the code show below:

Diff for: content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-jlink-setup/mkr-jlink.md

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Now we are ready to start debugging our sketch. Connect the power to the MKR boa
6767

6868
Then create or open the sketch that you want to debug. If you don't already have a sketch in mind, feel free to use the example sketch found at the end of this tutorial.
6969

70+
Select **Tools > Programmer > Segger J-Link** from the Arduino IDE menus.
71+
7072
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:
7173

7274
```arduino

Diff for: content/hardware/02.hero/boards/zero/tutorials/debugging-with-zero/debugging-with-zero.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ For this this tutorial we will be using the Arduino Zero's built-in debugger int
2222

2323
***Important: You should connect the Arduino Zero through its programming USB port.***
2424

25-
**2.** Select the board from the board/port list. When we select the Arduino Zero, the debugger icon close to the upload button will also become more visible.
25+
**2.** Select the board from the board/port list.
26+
27+
**3.** Select **Tools > Programmer > Atmel EDBG**. The debugger icon close to the upload button will now become more visible.
2628

2729
![Debugger icon available if board is supported.](assets/icon-available.png)
2830

0 commit comments

Comments
 (0)