samples: boards: Convert doc to CMake

Convert doc of samples/boards to CMake.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2017-11-12 10:13:07 +01:00 committed by Anas Nashif
parent 08183f7e73
commit bd9d38b5bd
6 changed files with 36 additions and 33 deletions

View File

@ -106,17 +106,19 @@ Before using the environmental sensing sample, the Arduino 101 board needs to be
flashed with the firmware for its nRF51 Bluetooth LE controller. To do this,
follow the steps in :ref:`bluetooth_firmware_arduino_101`.
The sample provide a single :file:`Makefile` that builds both images, simple run
make in the top level directory of the application and flash either using JTAG
or using DFU. (DFU is preferred).
Build and flash each of the images either using JTAG or DFU (DFU is preferred):
The sample can be found here: :file:`samples/boards/arduino_101/environmental_sensing` in the
Zephyr project tree.
.. zephyr-app-commands::
:zephyr-app: samples/boards/arduino_101/environmental_sensing/ap
:board: arduino_101
:goals: build flash
:compact:
.. code-block:: console
$ make
$ make flash # for flashing with JTAG
.. zephyr-app-commands::
:zephyr-app: samples/boards/arduino_101/environmental_sensing/sensor
:board: arduino_101_sss
:goals: build flash
:compact:
Running
========

View File

@ -14,10 +14,11 @@ Building
This project outputs various things on the BBC micro:bit display. It can
be built as follows:
.. code-block:: console
$ cd samples/boards/microbit/display
$ make
.. zephyr-app-commands::
:zephyr-app: samples/boards/microbit/display
:board: bbc_microbit
:goals: build
:compact:
Sample Output
=============

View File

@ -25,7 +25,9 @@ generate beeps whenever the ball hits a wall or the paddle.
Building
********
.. code-block:: console
.. zephyr-app-commands::
:zephyr-app: samples/boards/microbit/pong
:board: bbc_microbit
:goals: build
:compact:
$ cd samples/boards/microbit/pong
$ make

View File

@ -19,10 +19,11 @@ Building
The sample can be built as follows:
.. code-block:: console
$ cd samples/boards/microbit/sound
$ make
.. zephyr-app-commands::
:zephyr-app: samples/boards/microbit/sound
:board: bbc_microbit
:goals: build
:compact:
Sample Output
=============

View File

@ -36,17 +36,12 @@ This application uses nrf52 DK board for the demo.
Building, Flashing and Running
******************************
Building
.. code-block:: console
make BOARD=nrf52_pca10040
Flashing (Use nrfjprog for flashing):-
.. code-block:: console
nrfjprog --eraseall -f nrf52
nrfjprog --program <zephyr.hex> -f nrf52
nrfjprog --reset -f nrf52
.. zephyr-app-commands::
:zephyr-app: samples/boards/nrf52/power_mgr
:board: nrf52_pca10040
:goals: build flash
:compact:
Running:

View File

@ -37,9 +37,11 @@ the board.
Building and Running
********************
.. code-block:: console
make BOARD=<board>
.. zephyr-app-commands::
:zephyr-app: samples/boards/quark_se_c1000/power_mgr
:board: <board>
:goals: build
:compact:
Sample Output
=============