Getting Started

1. Preperations

Requirements

  • SOM Development Kit or Proto

  • J-Link EDU Mini - Segger

  • Visual Studio Code

  • Windows Desktop with internet access

Set up your board

  1. Insert the nano-SIM card into the nano-SIM card slot.

  2. Attach the included U.FL cabled LTE-M Antenna.

  3. Attach the included U.FL cabled GNSS Antenna.

  4. Plug the SOM to SOM carrier board. (If you are using Proto you can just connect to the computer.)

  5. Connect the SOM carrier board(or Proto) to the computer with a USB-C cable and J-Link EDU MINI.

Download and Install 'nRF Connect for Desktop' from Nordic Website.

nRF Connect for Desktop Download Link

Download and Install 'J-Link Software' from SEGGER Website.

J-Link/J-Trace Download link
Installing J-link SEGGER
Installing J-link SEGGER

3. Install - CP2102n USB to UART Driver

When you connect the device to your computer via USB, you need to install the driver for CP2120N USB to UART Bridge Controller.

Device Controller
CP2012N USB to UART Bridge Controller Download Link

Download and Install CP201x VCP Windows from Silicon Labs Website.

Installing CP2102N USB to UART Driver

Unzip the downloaded file and run the 'CP201xVCPInstaller_x64'.

Installing CP2102N USB to UART Driver

If it appears under the Ports (COM & LPT), the driver has installed correctly.

Installing CP2102N USB to UART Driver

4. SetUp - nRF Connect for VS Code

(1) Download and Install 'nRF Conenct For VS Code Extension Pack'

Setup nRF Connect for VS Code

(2) Download and Install Toolchain and SDK

After installing the 'nRF Connect for VS Code Extension Pack', you can see the nRF Connect icon from the left side bar, click the nRF Connect icon, then select Manage SDKs.

Setup nRF Connect for VS Code

Select Install SDK and nRF Connect SDK.

Setup nRF Connect for VS Code
Setup nRF Connect for VS Code

You can choose and install your preferred SDK version.

I'm currently using v3.1.1.

Setup nRF Connect for VS Code

It takes about 10 minutes to install SDK. After installing SDK you need to install toolchain. Usually, installing the SDK also installs the toolchain. But, if it isn't installed, you can install it as follows:

You can choose and install your preferred Toolchain version.

I'm currently using v3.1.1.

After installing SDK and Toolchain you can see the ncs folder at C:\ncs.

Add the NCS folder path to your environment variables.

Then download and install 'nRF Util' from Nordic Website. And place the nRF Util file in the ncs folder.

nRF Util Download Link

Type nrfutil install device and nrfutil install completion in the Command Prompt.

If you see this log after running nrfutil list, the installation has completed successfully.

Command     Version  Description
completion  1.5.0
device      2.13.2   Device discovery, programming, and operations such as erase, reset, and recovery.

Found 2 installed command(s)

Now you are ready to create a new application!

5. Example - Hello World

Choose 'Create a new application' at nRF Connect Extension in VS Code and 'Create a black application'.

Example - Hello World
Example - Hello World

Then you can see this window.

Example - Hello World

Copy the board file to your project folder.

Example - Hello World

Add build configuration to make a build file.

Example - Hello World

You need to select SDK, Toolchain, Board target and Base configuration files.

Example - Hello World

After build the project you can flash the project to device.

If you see log like this, the flash has completed successfully.

-- west flash: using runner nrfutil
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: D:\CocoLinx\Projects\Csom\csom_v1_examples\helloworld\build\merged.hex
-- runners.nrfutil: Erasing address ranges touched by firmware
-- runners.nrfutil: Programming image
-- runners.nrfutil: Verifying image
-- runners.nrfutil: Reset
-- runners.nrfutil: Board(s) with serial number(s) 801032619 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it.