Building and testing a sample application
4.2 Programming a sample
Use the Nordic Edition of the SES Integrated Development Environment (IDE) to build and program an nRF
Connect SDK sample. See Building and programming a sample application for detailed instructions.
If you prefer to build and program your application from the command line, see Building on the command
line for instructions. You can also use nRF Connect Programmer to program your application.
The following user guides in the nRF Connect SDK documentation explain the concepts that you need to
know to work with the nRF9160 DK in the nRF Connect SDK:
• Working with nRF9160
• Modifying a sample application
• Application Development
When building samples for the nRF9160 DK, you can choose between two different build targets:
• nrf9160dk_nrf9160 for firmware in the secure domain
• nrf9160dk_nrf9160_ns for firmware in the non-secure domain
When in doubt, use nrf9160dk_nrf9160_ns. All samples in the nRF Connect SDK are configured to
run in the non-secure domain. They automatically include the nRF9160: Secure Partition Manager for the
secure domain.
You can find documentation for all available samples under Samples, Applications, and Samples and
Demos.
4.3 Testing the cellular connection with the AT Client
sample
A good starting point for experimenting with the nRF9160 DK is to program and test the nRF9160: AT
Client sample. You can also use it to troubleshoot and debug any connection issues.
The AT Client sample enables you to send AT commands to the LTE-M/NB-IoT modem of your nRF9160 DK
to test and monitor the cellular connection.
Complete the following steps to build and test the AT Client sample:
1. Build and program the sample application as described in Building and programming a sample
application.
Use the following information when opening the nRF Connect SDK Project, where NCS_folder is the
folder where you installed the nRF Connect SDK (for example, C:\NCS):
• CMakeLists.txt: NCS_folder\nrf\samples\nrf9160\at_client\CMakeLists.txt
• Board Directory: NCS_folder\zephyr\boards\arm\nrf9160dk_nrf9160
• Board Name: nrf9160dk_nrf9160_ns
• Build Directory: accept the default
Note: The AT Client sample is also provided as a prebuilt firmware image. If you do
not want to build the sample yourself but program it to troubleshoot connection
issues, follow the steps in Updating the application firmware on page 7 to program the
nrf9160dk_at_client_*.hex file from the nRF9160 DK application and modem
firmware package that you can download from the nRF9160 DK Downloads page.
2. Test the AT Client sample as described in Testing the AT Client sample.
4418_1412
15