Create Project

Create New Project - Simple LED Blink and Print Serial Message

Let's create a new custom project.

1. Create Folder and Files

Let's create project named "mySooniLED" at C:\ncs\workspace\mySooniLED

You need 3 files for your first project.

  • mySooniLED\ (project folder)

    1. src\main.c

    2. CMakeLists.txt

    3. prj.conf

So, It should look like this.

project folder
source folder

2. Source Codes

This is a simple led blink example codes.

2.1 src/main.c

We get gpio device and control directly instead of alias name such as led-0

2.2 CMakeLists.txt

2.3 prj.conf

3. Open as Segger Project

3.3 Select Project and Board

  1. Select "C:\ncs\workspace\mySooniLED" project folder by use "..." button.

  2. Check '3rd party kits'.

  3. Select 'soonisys_sldev_nrf9160ns'.

  4. OK.

Last updated