Skip to content

Commit

Permalink
boards: 96b_nitrogen: Add support for flash/debug with pyOCD
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Jun 23, 2017
1 parent 7087162 commit 404ceb6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
6 changes: 6 additions & 0 deletions boards/arm/96b_nitrogen/Makefile.board
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FLASH_SCRIPT = pyocd.sh
DEBUG_SCRIPT = pyocd.sh

PYOCD_TARGET = nrf52

export FLASH_SCRIPT PYOCD_TARGET
19 changes: 11 additions & 8 deletions boards/arm/96b_nitrogen/doc/96b_nitrogen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,22 +267,25 @@ and install a more recent version of pyOCD.
Flashing an Application to 96Boards Nitrogen
============================================

The sample application :ref:`hello_world` is being used in this tutorial:
This example uses the :ref:`hello_world` sample with the
:ref:`nxp_opensda_pyocd` tools. Use the ``make flash`` build target to build
your Zephyr application, invoke the pyOCD flash tool and program your Zephyr
application to flash.

.. code-block:: console
$<zephyr_root_path>/samples/hello_world
$ cd <zephyr_root_path>
$ . zephyr-env.sh
$ cd samples/hello_world/
$ make BOARD=96b_nitrogen
To build the Zephyr kernel and application, enter:
You can either flash the board by using the `make flash` target:

.. code-block:: console
$ cd <zephyr_root_path>
$ source zephyr-env.sh
$ cd $ZEPHYR_BASE/samples/hello_world/
$ make BOARD=96b_nitrogen
$ make flash
Connect the micro-USB cable to the 96Boards Nitrogen and to your computer.
or you can invoke the pyocd commands directly, as described below.

Erase the flash memory in the nRF52832:

Expand Down

0 comments on commit 404ceb6

Please sign in to comment.