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.
Prerequisite: Set up OpenOCD development environment
Host Environment: Ubuntu version 18.04
- Nitrogen Board
- Micro USB cable
Build Zephyr Blinky demo for Nitrogen board:
Zephyr getting started guide 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.
Note: Update cmake version if cmake --version returns < 3.13.1
Get Zephyr and install Python dependencies:
Build blinky demo and load it up using GDB via OpenOCD:
Expected output of OpenOCD console after successfully connecting with Nitrogen board
Expected output of GDB console after successfully loading blinky demo: