Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Nitrogen is a 96Boards compliant IoT Edition board and is a low cost option for debugging Arm Cortex M support in OpenOCD. This guide provides a quick setup guide for Nitrogen board with the outcome of debugging OpenOCD code related to Arm Cortex M support.

...

  • Nitrogen Board
  • Micro USB cable

Build Zephyr Blinky demo for Nitrogen board:


Zephyr getting started guide[1] provides a step by step guide to set up Zephyr build environment and build a LED blinking demo for Nitrogen board. Following steps are taken from Zephyr getting started guide and more details can be found here[1].

Install dependencies:

sudo apt install --no-install-recommends git cmake ninja-build gperf \
ccache dfu-util device-tree-compiler wget \
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
make gcc gcc-multilib g++-multilib libsdl2-dev


Note: Update cmake version if cmake --version returns < 3.13.1

Setup prerequisites and build Zephyr demo app

...

Download zephyr-sdk from the link below:

https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.1/zephyr-sdk-0.9.1-setup.run

Code Block
chmod +x zephyr-sdk-<version>-setup.run
./zephyr-sdk-<version>-setup.run

...

Flashing an Application to 96Boards Nitrogen:

This example uses the Hello World sample with the 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.

...