Skip to content

Commit 38db4ed

Browse files
MaureenHelmgalak
authored andcommitted
doc: Update OpenSDA doc to reflect new OPENSDA_FW variable
Kinetis boards now have a makefile variable to select the flash/debug scripts based on the OpenSDA firmware. Update the general OpenSDA documentation accordingly. Signed-off-by: Maureen Helm <[email protected]>
1 parent 81a7314 commit 38db4ed

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

doc/tools/opensda.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ application binary. :ref:`nxp_opensda_firmware` with this application.
5959
Flashing
6060
========
6161

62-
Use the ``make flash`` build target to build your Zephyr application, invoke
63-
the pyOCD flash tool and program your Zephyr application to flash.
62+
Use the ``make flash`` build target with ``OPENSDA_FW=daplink`` to build your
63+
Zephyr application, invoke the pyOCD flash tool and program your Zephyr
64+
application to flash.
6465

6566
.. code-block:: console
6667
67-
$ make FLASH_SCRIPT=pyocd.sh flash
68+
$ make OPENSDA_FW=daplink flash
6869
Using /home/maureen/zephyr/boards/arm/frdm_k64f/frdm_k64f_defconfig as base
6970
Merging /home/maureen/zephyr/tests/include/test.config
7071
Merging /home/maureen/zephyr/kernel/configs/kernel.config
@@ -130,13 +131,13 @@ the pyOCD flash tool and program your Zephyr application to flash.
130131
Debugging
131132
=========
132133

133-
Use the ``make debug`` build target to build your Zephyr application, invoke
134-
the pyOCD GDB server, attach a GDB client, and program your Zephyr application
135-
to flash. It will leave you at a gdb prompt.
134+
Use the ``make debug`` build target with ``OPENSDA_FW=daplink`` to build your
135+
Zephyr application, invoke the pyOCD GDB server, attach a GDB client, and
136+
program your Zephyr application to flash. It will leave you at a gdb prompt.
136137

137138
.. code-block:: console
138139
139-
$ make DEBUG_SCRIPT=pyocd.sh debug
140+
$ make OPENSDA_FW=daplink debug
140141
Using /home/maureen/zephyr/boards/arm/frdm_k64f/frdm_k64f_defconfig as base
141142
Merging /home/maureen/zephyr/tests/include/test.config
142143
Merging /home/maureen/zephyr/kernel/configs/kernel.config
@@ -254,13 +255,13 @@ the ``make flash`` build target is not supported.
254255
Debugging
255256
=========
256257

257-
Use the ``make debug`` build target to build your Zephyr application, invoke
258-
the J-Link GDB server, attach a GDB client, and program your Zephyr application
259-
to flash. It will leave you at a gdb prompt.
258+
Use the ``make debug`` build target with ``OPENSDA_FW=jlink`` to build your
259+
Zephyr application, invoke the J-Link GDB server, attach a GDB client, and
260+
program your Zephyr application to flash. It will leave you at a gdb prompt.
260261

261262
.. code-block:: console
262263
263-
$ make DEBUG_SCRIPT=jlink.sh debug
264+
$ make OPENSDA_FW=jlink debug
264265
Using /home/maureen/zephyr/boards/arm/frdm_k64f/frdm_k64f_defconfig as base
265266
Merging /home/maureen/zephyr/tests/include/test.config
266267
Merging /home/maureen/zephyr/kernel/configs/kernel.config

0 commit comments

Comments
 (0)