-
Convert all headings into title case. Closes: https://booting.oniroproject.org/distro/oniro/-/issues/204 Signed-off-by:
Gururaj Shetty <gururaj.shetty@huawei.com>
Convert all headings into title case. Closes: https://booting.oniroproject.org/distro/oniro/-/issues/204 Signed-off-by:
Gururaj Shetty <gururaj.shetty@huawei.com>
nRF52840 DK
Overview
The nRF52840 DK is a low-cost single-board development kit that uses the nRF52840 multi-protocol SoC to develop Bluetooth® 5, Bluetooth mesh, Thread, Zigbee, ANT, IEEE 802.15.4, and 2.4 GHz proprietary applications. It also supports development on the nRF52811 SoC.
Hardware
- For detailed specifications, see nRF52840 DK product page on the nRF52840 DK website.
- For hardware schematics, see nRF52840 Development Kit.
Working with the Board
Building an Application
|main_project_name| Zephyr flavour is based on Zephyr kernel.
- Source the environment with proper template settings, flavour being
zephyr
and target machine beingnrf52840dk-nrf52840
:
$ TEMPLATECONF=../oniro/flavours/zephyr . ./oe-core/oe-init-build-env build-oniro-zephyr
- You will find yourself in the newly created build directory. Call
bitbake
to build the image. Example below shows how to buildzephyr-philosophers
.
$ MACHINE=nrf52840dk-nrf52840 bitbake zephyr-philosophers
You can set up
MACHINE
variable can be set up inconf/local.conf
file under the build directory, or via the command line.
- After the build completes, the image file can be found in
build-oniro-zephyr/tmp-newlib/deploy/images/nrf52840dk-nrf52840/
.
Flashing an Application
pyOCD is a required host tool used by the flashing mechanism described below:
- To install the latest stable version of pyOCD via pip as follows:
$ pip install --pre -U pyOCD
Note
When
ValueError: The device has no langid
error is displayed due to lack of permission, perform the instructions to resolve.
- 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:
$ MACHINE=nrf52840dk-nrf52840 bitbake zephyr-philosophers -c flash_usb