Skip to content
Snippets Groups Projects
Commit c83a11ac authored by Arul Kumaran's avatar Arul Kumaran Committed by ARUL DEVARAJAN
Browse files

docs/nRF52840-DK: Review comments fix

* Fixed review comments, fixes issue
  https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/62

.

Signed-off-by: default avatarArul Kumaran <arulkumaran.devarajan@huawei.com>
parent a99d4df9
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
.. _SupportedBoardnRF52840DK: .. _SupportedBoardnRF52840DK:
nRF52840 DK nRF52840 DK
############ ###########
.. contents:: .. contents::
:depth: 3 :depth: 3
...@@ -13,9 +13,10 @@ nRF52840 DK ...@@ -13,9 +13,10 @@ nRF52840 DK
Overview Overview
******** ********
The nRF52840 DK is a low-cost single-board development kit that uses the nRF52840 The nRF52840 DK is a low-cost single-board development kit that uses the
multi-protocol SoC to develop Bluetooth® 5, Bluetooth mesh, Thread, Zigbee, ANT, IEEE 802.15.4, and 2.4 GHz nRF52840 multi-protocol SoC to develop Bluetooth® 5, Bluetooth mesh, Thread,
proprietary applications. It also supports development on the nRF52811 SoC. Zigbee, ANT, IEEE 802.15.4, and 2.4 GHz proprietary applications.
It also supports development on the nRF52811 SoC.
Hardware Hardware
******** ********
...@@ -45,7 +46,8 @@ All Scenarios OS Zephyr flavour is based on Zephyr kernel. ...@@ -45,7 +46,8 @@ All Scenarios OS Zephyr flavour is based on Zephyr kernel.
$ MACHINE=nrf52840dk-nrf52840 bitbake zephyr-philosophers $ MACHINE=nrf52840dk-nrf52840 bitbake zephyr-philosophers
You can set up ``MACHINE`` variable can be set up in ``conf/local.conf`` file under the build directory, or via the command line. You can set up ``MACHINE`` variable can be set up in ``conf/local.conf`` file
under the build directory, or via the command line.
3. After the build completes, the image file can be found in 3. After the build completes, the image file can be found in
``build-ohos-zephyr/tmp-newlib/deploy/images/nrf52840dk-nrf52840/``. ``build-ohos-zephyr/tmp-newlib/deploy/images/nrf52840dk-nrf52840/``.
...@@ -53,12 +55,7 @@ All Scenarios OS Zephyr flavour is based on Zephyr kernel. ...@@ -53,12 +55,7 @@ All Scenarios OS Zephyr flavour is based on Zephyr kernel.
Flashing an application Flashing an application
======================= =======================
Installing pyOCD pyOCD is a required host tool used by the flashing mechanism described below:
----------------
pyOCD is an open source Python package for programming and debugging
Arm Cortex-M microcontrollers using multiple supported types of USB debug probes.
It is fully cross-platform, with support for Linux.
* To install the latest stable version of pyOCD via `pip <https://pip.pypa.io/en/stable/>`_ as follows: * To install the latest stable version of pyOCD via `pip <https://pip.pypa.io/en/stable/>`_ as follows:
...@@ -66,36 +63,14 @@ It is fully cross-platform, with support for Linux. ...@@ -66,36 +63,14 @@ It is fully cross-platform, with support for Linux.
$ pip install --pre -U pyOCD $ pip install --pre -U pyOCD
* To install the latest pre-release version from the HEAD of the master branch, execute the following command:
.. code-block:: console
$ pip install --pre -U git+https://github.com/mbedmicro/pyOCD.git
* To install directly from the source by cloning the git repository, do the following:
.. code-block:: console
$ python setup.py install
* Verify that the board is detected by pyOCD by executing the command:
.. code-block:: console
$ pyocd-flashtool -l
.. note:: .. note::
When ``ValueError: The device has no langid`` error is displayed due to lack of When ``ValueError: The device has no langid`` error is displayed due to lack of
permission, perform the `instructions to resolve <https://github.com/pyocd/pyOCD/tree/master/udev>`__. permission, perform the `instructions to resolve <https://github.com/pyocd/pyOCD/tree/master/udev>`__.
* To flash the image, execute the command used to build the image with ``-c flash_usb`` appended.
For example, to flash the already built zephyr-philosophers image, execute:
How to flash .. code-block:: console
------------
To flash the image, execute the command used to build the image with ``-c flash_usb`` appended.
For example, to flash the already built zephyr-philosophers image, execute:
.. code-block:: console
$ MACHINE=nrf52840dk-nrf52840 bitbake zephyr-philosophers -c flash_usb $ MACHINE=nrf52840dk-nrf52840 bitbake zephyr-philosophers -c flash_usb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment