Blinky Example¶
Description¶
The Blinky Example demonstrates how to configure the GPIO pins to drive the LEDs.
Tip
Before you start building, remember to set up the nRF5 SDK development environment first. See Setup the nRF5 SDK for details.
Building the example¶
The source code and the project file of the example are located in the following folder: examples/nrf5-sdk/blinky.
Open terminal and navigate to the directory with the example Makefile:
cd ./examples/nrf5-sdk/blinky/armgcc
Run make
to build the example:
make
Programming the firmware¶
After compiled, the firmware is located in blinky/armgcc/_build
with the name nrf52840_xxaa.hex
.
Connect the debugger USB port to your PC using the provided USB-C Cable. A disk drive called M2-DOCK will be automatically detected by the computer.
Run the following command in blinky/armgcc
to program the board:
make flash_all
Tip
See Programming section for more details about how to program the nRF52840 M.2 Module.
Testing¶
After programmed, the application will run automatically. Observe that the LEDs will start to blink as shown in this figure:
Create an Issue¶
Interested in contributing to this project? Want to report a bug? Feel free to click here: