![]() |
nRF5 SDK
v15.2.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API |
To start developing your own application, you should first test that you set up your toolchain correctly. To do so, compile, program, and run a very simple example that does not use a SoftDevice, for example the Blinky Example.
Make sure that you have all required tools installed and that the board is connected to your computer. See Getting started page (for nRF52840) or Setting up the development kit (for nRF52832) for more information.
Before you program an example, erase the contents of the board.
If no SoftDevice has been installed on the board, simply open Keil and select Flash > Erase.
If a SoftDevice has been installed on the board or if you are not sure, use nRFgo Studio to make sure that you erase the whole board. Select your device in the Device Manager pane. Then click the Erase All button. If you prefer to use a command line tool instead, use nrfjprog (part of the nRF5x Command Line Tools).
To run the example:
...\examples\peripheral\blinky
....\pca10040
....\blank
....\arm5_no_packs
. Example with the QSPI peripheral
If you want to use the QSPI peripheral, check how to configure a QSPI device, program it, and start the Blinky application: Compiling and running an example from the QSPI using XiP.