Skip to content

Commit e3794fd

Browse files
danieldegrassenashif
authored andcommitted
boards: nxp: imxrt10xx: update debugging section to use common snippets
Update iMXRT10xx board debug sections to use common snippets, which describe debug configuration settings shared between all these boards. This should help avoid documentation falling out of date in the future. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 19e4cb8 commit e3794fd

File tree

10 files changed

+216
-253
lines changed

10 files changed

+216
-253
lines changed

boards/nxp/common/opensda-debug.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
:orphan:
2+
3+
.. nxp-opensda-probes
4+
5+
A debug probe is used for both flashing and debugging the board. This board has
6+
an :ref:`opensda-onboard-debug-probe`. The default firmware present on this
7+
probe is the :ref:`opensda-daplink-onboard-debug-probe`.
8+
9+
Based on the host tool installed, please use the following instructions
10+
to setup your debug probe:
11+
12+
* :ref:`jlink-debug-host-tools`: `Using J-Link on NXP OpenSDA Boards`_
13+
* :ref:`linkserver-debug-host-tools`: `Using DAPLink on NXP OpenSDA Boards`_
14+
* :ref:`pyocd-debug-host-tools`: `Using DAPLink on NXP OpenSDA Boards`_
15+
16+
Using DAPLink on NXP OpenSDA Boards
17+
-----------------------------------
18+
19+
1. If the debug firmware has been modified, follow the instructions provided at
20+
:ref:`opensda-daplink-onboard-debug-probe` to reprogram the default debug
21+
probe firmware on this board.
22+
#. Ensure the SWD isolation jumpers are populated
23+
24+
Using J-Link on NXP OpenSDA Boards
25+
----------------------------------
26+
27+
There are two options: the onboard debug circuit can be updated with Segger
28+
J-Link firmware, or a :ref:`jlink-external-debug-probe` can be attached to the
29+
board.
30+
31+
To update the onboard debug circuit, please do the following:
32+
33+
1. If the debug firmware has been modified, follow the instructions provided at
34+
:ref:`opensda-jlink-onboard-debug-probe` to reprogram the default debug
35+
probe firmware on this board.
36+
#. Ensure the SWD isolation jumpers are removed.
37+
38+
To attach an external J-Link probe, ensure the SWD isolation jumpers are
39+
removed, and connect the external probe to the JTAG/SWD header.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
:orphan:
2+
3+
.. rt1xxx-lpclink2-probes
4+
5+
A debug probe is used for both flashing and debugging the board. This board has
6+
an :ref:`lpc-link2-onboard-debug-probe`. The default firmware present on this
7+
probe is the :ref:`lpclink2-daplink-onboard-debug-probe`.
8+
9+
Based on the host tool installed, please use the following instructions
10+
to setup your debug probe:
11+
12+
* :ref:`jlink-debug-host-tools`:
13+
`Using J-Link with LPC-Link2 Probe`_
14+
* :ref:`linkserver-debug-host-tools`:
15+
`Using CMSIS-DAP with LPC-Link2 Probe`_
16+
* :ref:`pyocd-debug-host-tools`:
17+
`Using CMSIS-DAP with LPC-Link2 Probe`_
18+
19+
Using CMSIS-DAP with LPC-Link2 Probe
20+
------------------------------------
21+
22+
1. Follow the instructions provided at
23+
:ref:`lpclink2-cmsis-onboard-debug-probe` to reprogram the default debug
24+
probe firmware on this board.
25+
#. Ensure the SWD isolation jumpers are populated
26+
27+
Using J-Link with LPC-Link2 Probe
28+
---------------------------------
29+
30+
There are two options: the onboard debug circuit can be updated with Segger
31+
J-Link firmware, or a :ref:`jlink-external-debug-probe` can be attached to the
32+
EVK.
33+
34+
To update the onboard debug circuit, please do the following:
35+
36+
1. Switch the power source for the EVK to a different source than the
37+
debug USB, as the J-Link firmware does not power the EVK via the
38+
debug USB.
39+
#. Follow the instructions provided at
40+
:ref:`lpclink2-jlink-onboard-debug-probe` to reprogram the default debug
41+
probe firmware on this board.
42+
#. Ensure the SWD isolation jumpers are populated.
43+
44+
To attach an external J-Link probe, ensure the SWD isolation jumpers are
45+
removed, then connect the probe to the external JTAG/SWD header

boards/nxp/mimxrt1010_evk/doc/index.rst

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -159,45 +159,26 @@ and the remaining are not used.
159159
Programming and Debugging
160160
*************************
161161

162-
Build and flash applications as usual (see :ref:`build_an_application` and
163-
:ref:`application_run` for more details).
162+
This board supports 3 debug host tools. Please install your preferred host
163+
tool, then follow the instructions in `Configuring a Debug Probe`_ to
164+
configure the board appropriately.
164165

165-
Configuring a Debug Probe
166-
=========================
167-
168-
A debug probe is used for both flashing and debugging the board. This board is
169-
configured by default to use the :ref:`opensda-daplink-onboard-debug-probe`,
170-
however the :ref:`pyocd-debug-host-tools` do not yet support programming the
171-
external flashes on this board so you must reconfigure the board for one of the
172-
following debug probes instead.
173-
174-
:ref:`jlink-external-debug-probe`
175-
-------------------------------------------
176-
177-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
178-
path.
179-
180-
Attach a J-Link 10-pin connector to J55. Check that jumpers J61 and J62 are
181-
**off** (they are on by default when boards ship from the factory) to ensure
182-
SWD signals are disconnected from the OpenSDA microcontroller.
166+
* :ref:`linkserver-debug-host-tools` (Default, Supported by NXP)
167+
* :ref:`jlink-debug-host-tools` (Supported by NXP)
168+
* :ref:`pyocd-debug-host-tools` (Not supported by NXP)
183169

184-
Using LinkServer
185-
----------------
170+
Once the host tool and board are configured, build and flash applications
171+
as usual (see :ref:`build_an_application` and :ref:`application_run` for more
172+
details).
186173

187-
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
188-
search path. To use LinkServer the on board CMSIS-DAP firmware need updated with
189-
LPCScrypt installed with LinkServer.
190-
191-
To enter board debuger FW update mode, connect J22 first, and power cycle board.
192-
For more details please refer to `Debug_Probe_Firmware_Programming.pdf`, which is
193-
installed with LinkServer.
194-
195-
.. code-block:: console
174+
Configuring a Debug Probe
175+
=========================
196176

197-
:Ubuntu/Mac: scripts/program_CMSIS
198-
:Windows: scripts/program_CMSIS.cmd
177+
For the RT1010, J61/J62 are the SWD isolation jumpers, J22 is the DFU
178+
mode jumper, and J16 is the 10 pin JTAG/SWD header.
199179

200-
You may also se the ``-r linkserver`` option with West to use the LinkServer.
180+
.. include:: ../../common/rt1xxx-lpclink2-debug.rst
181+
:start-after: rt1xxx-lpclink2-probes
201182

202183
Configuring a Console
203184
=====================

boards/nxp/mimxrt1015_evk/doc/index.rst

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -161,40 +161,26 @@ and the remaining are not used.
161161
Programming and Debugging
162162
*************************
163163

164-
Build and flash applications as usual (see :ref:`build_an_application` and
165-
:ref:`application_run` for more details).
164+
This board supports 3 debug host tools. Please install your preferred host
165+
tool, then follow the instructions in `Configuring a Debug Probe`_ to
166+
configure the board appropriately.
166167

167-
Configuring a Debug Probe
168-
=========================
169-
170-
A debug probe is used for both flashing and debugging the board. This board is
171-
configured by default to use the :ref:`opensda-daplink-onboard-debug-probe`.
168+
* :ref:`linkserver-debug-host-tools` (Default, Supported by NXP)
169+
* :ref:`jlink-debug-host-tools` (Supported by NXP)
170+
* :ref:`pyocd-debug-host-tools` (Not supported by NXP)
172171

173-
Using LinkServer: :ref:`opensda-daplink-onboard-debug-probe`
174-
------------------------------------------------------------
172+
Once the host tool and board are configured, build and flash applications
173+
as usual (see :ref:`build_an_application` and :ref:`application_run` for more
174+
details).
175175

176-
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
177-
search path. LinkServer works with the default CMSIS-DAP firmware included in
178-
the on-board debugger.
179-
180-
Linkserver is the default runner. You may also se the ``-r linkserver`` option
181-
with West to use the LinkServer runner.
182-
183-
.. code-block:: console
184-
185-
west flash
186-
west debug
187-
188-
189-
External JLink: :ref:`jlink-external-debug-probe`
190-
-------------------------------------------------
176+
Configuring a Debug Probe
177+
=========================
191178

192-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
193-
path.
179+
For the RT1015, J47/J48 are the SWD isolation jumpers, J42 is the DFU
180+
mode jumper, and J34 is the 10 pin JTAG/SWD header.
194181

195-
Attach a J-Link 10-pin connector to J55. Check that jumpers J47 and J48 are
196-
**off** (they are on by default when boards ship from the factory) to ensure
197-
SWD signals are disconnected from the OpenSDA microcontroller.
182+
.. include:: ../../common/rt1xxx-lpclink2-debug.rst
183+
:start-after: rt1xxx-lpclink2-probes
198184

199185
Configuring a Console
200186
=====================

boards/nxp/mimxrt1020_evk/doc/index.rst

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -219,53 +219,26 @@ remaining are not used.
219219
Programming and Debugging
220220
*************************
221221

222-
Build and flash applications as usual (see :ref:`build_an_application` and
223-
:ref:`application_run` for more details).
222+
This board supports 3 debug host tools. Please install your preferred host
223+
tool, then follow the instructions in `Configuring a Debug Probe`_ to
224+
configure the board appropriately.
224225

225-
Configuring a Debug Probe
226-
=========================
227-
228-
A debug probe is used for both flashing and debugging the board. This board is
229-
configured by default to use the :ref:`opensda-daplink-onboard-debug-probe`,
230-
however the :ref:`pyocd-debug-host-tools` do not yet support programming the
231-
external flashes on this board so you must reconfigure the board for one of the
232-
following debug probes instead.
233-
234-
Using LinkServer
235-
----------------
226+
* :ref:`linkserver-debug-host-tools` (Default, Supported by NXP)
227+
* :ref:`jlink-debug-host-tools` (Supported by NXP)
228+
* :ref:`pyocd-debug-host-tools` (Not supported by NXP)
236229

237-
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
238-
search path. LinkServer works with the default CMSIS-DAP firmware included in
239-
the on-board debugger.
240-
241-
Linkserver is the default runner. You may also se the ``-r linkserver`` option
242-
with West to use the LinkServer runner.
243-
244-
.. code-block:: console
230+
Once the host tool and board are configured, build and flash applications
231+
as usual (see :ref:`build_an_application` and :ref:`application_run` for more
232+
details).
245233

246-
west flash
247-
west debug
248-
249-
JLink (on-board): :ref:`opensda-jlink-onboard-debug-probe`
250-
----------------------------------------------------------
251-
252-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
253-
path.
254-
255-
Follow the instructions in :ref:`opensda-jlink-onboard-debug-probe` to program
256-
the `OpenSDA J-Link MIMXRT1020-EVK Firmware`_. Check that jumpers J27 and J28
257-
are **on** (they are on by default when boards ship from the factory) to ensure
258-
SWD signals are connected to the OpenSDA microcontroller.
259-
260-
External JLink: :ref:`jlink-external-debug-probe`
261-
-------------------------------------------------
234+
Configuring a Debug Probe
235+
=========================
262236

263-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
264-
path.
237+
For the RT1020, J47/J48 are the SWD isolation jumpers, J42 is the DFU
238+
mode jumper, and J16 is the 20 pin JTAG/SWD header.
265239

266-
Attach a J-Link 20-pin connector to J16. Check that jumpers J27 and J28 are
267-
**off** (they are on by default when boards ship from the factory) to ensure
268-
SWD signals are disconnected from the OpenSDA microcontroller.
240+
.. include:: ../../common/rt1xxx-lpclink2-debug.rst
241+
:start-after: rt1xxx-lpclink2-probes
269242

270243
Configuring a Console
271244
=====================

boards/nxp/mimxrt1024_evk/doc/index.rst

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -206,27 +206,21 @@ remaining are not used.
206206
Programming and Debugging
207207
*************************
208208

209-
Build and flash applications as usual (see :ref:`build_an_application` and
210-
:ref:`application_run` for more details).
209+
This board supports 2 debug host tools. Please install your preferred host
210+
tool, then follow the instructions in `Configuring a Debug Probe`_ to
211+
configure the board appropriately.
212+
213+
* :ref:`jlink-debug-host-tools` (Default, Supported by NXP)
214+
* :ref:`pyocd-debug-host-tools` (Not supported by NXP)
211215

212216
Configuring a Debug Probe
213217
=========================
214218

215-
A debug probe is used for both flashing and debugging the board. This board is
216-
configured by default to use the :ref:`opensda-daplink-onboard-debug-probe`,
217-
however the :ref:`pyocd-debug-host-tools` do not yet support programming the
218-
external flashes on this board so you must reconfigure the board for one of the
219-
following debug probes instead.
220-
221-
:ref:`jlink-external-debug-probe`
222-
---------------------------------
223-
224-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
225-
path.
219+
For the RT1024, J47/J48 are the SWD isolation jumpers, J42 is the DFU
220+
mode jumper, and J55 is the 10 pin JTAG/SWD header.
226221

227-
Attach a J-Link 10-pin connector to J55. Check that jumpers J47 and J48 are
228-
**off** (they are on by default when boards ship from the factory) to ensure
229-
SWD signals are disconnected from the OpenSDA microcontroller.
222+
.. include:: ../../common/rt1xxx-lpclink2-debug.rst
223+
:start-after: rt1xxx-lpclink2-probes
230224

231225
Configuring a Console
232226
=====================

boards/nxp/mimxrt1040_evk/doc/index.rst

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -184,58 +184,29 @@ Serial Port
184184
The MIMXRT1040 SoC has eight UARTs. ``LPUART1`` is configured for the console,
185185
and the remaining UARTs are not used.
186186

187-
188187
Programming and Debugging
189188
*************************
190189

191-
Build and flash applications as usual (see :ref:`build_an_application` and
192-
:ref:`application_run` for more details).
193-
194-
Configuring a Debug Probe
195-
=========================
190+
This board supports 3 debug host tools. Please install your preferred host
191+
tool, then follow the instructions in `Configuring a Debug Probe`_ to
192+
configure the board appropriately.
196193

197-
Programming and Debugging
198-
*************************
194+
* :ref:`jlink-debug-host-tools` (Default, Supported by NXP)
195+
* :ref:`linkserver-debug-host-tools` (Supported by NXP)
196+
* :ref:`pyocd-debug-host-tools` (Not supported by NXP)
199197

200-
Build and flash applications as usual (see :ref:`build_an_application` and
201-
:ref:`application_run` for more details).
198+
Once the host tool and board are configured, build and flash applications
199+
as usual (see :ref:`build_an_application` and :ref:`application_run` for more
200+
details).
202201

203202
Configuring a Debug Probe
204203
=========================
205204

206-
A debug probe is used for both flashing and debugging the board. This board is
207-
configured by default to use the :ref:`opensda-daplink-onboard-debug-probe`,
208-
however the :ref:`pyocd-debug-host-tools` do not yet support programming the
209-
external flashes on this board so you must reconfigure the board for one of the
210-
following debug probes instead.
211-
212-
Option 1: :ref:`opensda-jlink-onboard-debug-probe` (Recommended)
213-
----------------------------------------------------------------
214-
215-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
216-
path.
217-
218-
Check that jumpers J9 and J10 are **on** to ensure SWD signals are connected to
219-
the OpenSDA microcontroller. Then, follow the instructions in `NXP AN13206`_ to
220-
program a JLink based firmware to the LPC4322 based debugger on this board.
221-
222-
Once the JLink based firmware is present on this board, the SOC will no longer
223-
be powered via the USB connection to J1. Move J40 to short pins 3 and 4 in
224-
order to use J48 for USB power, and connect another USB cable to power the SoC.
225-
LED D16 should illuminate to indicate the board is powered, and it should now be
226-
possible to program the SoC.
227-
228-
Option 2: :ref:`jlink-external-debug-probe`
229-
-------------------------------------------
230-
231-
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
232-
path.
205+
For the RT1040, J9/J10 are the SWD isolation jumpers, J12 is the DFU
206+
mode jumper, and J2 is the 20 pin JTAG/SWD header.
233207

234-
The board can be programmed using the :ref:`jlink-external-debug-probe`,
235-
provided the onboard debug circuit's SWD signals are isolated from the MCU.
236-
To do so, ensure that jumpers J9 and J10 are **off** (they are on by default
237-
when the board ships from the factory). The external probe's 20 pin connector
238-
can then be connected to J2 to program the SOC.
208+
.. include:: ../../common/rt1xxx-lpclink2-debug.rst
209+
:start-after: rt1xxx-lpclink2-probes
239210

240211
Configuring a Console
241212
=====================

0 commit comments

Comments
 (0)