EasyManua.ls Logo

Nordic nRF5 Series: nRF52 User Manual

Nordic nRF5 Series: nRF52
36 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #15 background imageLoading...
Page #15 background image
8
Programming an application
After setting up the required toolchain, you are ready to compile your application and program (or "flash")
it to your development board.
Starting with v14.1.0, the nRF5 SDK supplies SEGGER Embedded Studio projects. If you are using an older
version of the nRF5 SDK (for example, nRF5 SDK v12.3.0, which supports nRF51 Series devices), you must
import and convert the Keil µVision projects.
There is a series of video tutorials that show how to get started with SEGGER Embedded Studio in
combination with the nRF5 SDK. Check them out here: Getting started with SEGGER Embedded Studio and
the nRF5 SDK
8.1 Erasing the board
Before you program an example to the development board, you should erase the contents of the board.
There are different ways to erase the board. You can, for example, use SES or the command line tool
nrfjprog (part of the nRF5x Command Line Tools).
To erase the contents of the board with SES, complete the following steps:
a) Select Target > Connect J-Link.
b) After the connection is established, select Target > Erase All.
To erase the contents of the board with nrfjprog, enter the following command:
1159720_163 v1.1
15
Question and Answer IconNeed help?

Do you have a question about the Nordic nRF5 Series: nRF52 and is the answer not in the manual?

Nordic nRF5 Series: nRF52 Specifications

General IconGeneral
ProcessorARM Cortex-M4
Operating Voltage1.7 V to 3.6 V
GPIOUp to 32
Temperature Range-40°C to +85°C
SecurityARM TrustZone CryptoCell 310
PackageQFN, WLCSP
RAM64 KB
BluetoothBluetooth 5
NFCYes
ADC12-bit
Operating Frequency64 MHz
Flash MemoryUp to 512 KB

Summary

Revision History

Introduction

Minimum Requirements

Related Documentation

Development Kits, Boards, and Chips

SoftDevices

Running a First Test

Setting Up Your Toolchain

Nordic Tools and Downloads

Overview of Nordic Semiconductor tools and supported IDEs for toolchain selection.

Setting Up the nRF5 SDK

Instructions for downloading and extracting nRF5 SDK files for development.

Installing SEGGER Tools

Steps to download, install, and activate SEGGER Embedded Studio (SES) and J-Link software.

Installing nRF5x Command Line Tools

Guide to installing nRF5x Command Line Tools for various OS, including PATH setup.

Programming an Application

Erasing the Development Board

Procedure for erasing the development board contents using SES or nrfjprog.

Importing Keil Projects into SES

Steps to import Keil MDK projects into SEGGER Embedded Studio (SES), including CMSIS-CORE.

Compiling the Application

Instructions for compiling applications from SES projects or converted Keil projects.

Configuring SoftDevice Placement

Configure flash and SRAM placement macros for SoftDevice integration in SES.

Programming the Firmware

Programming the compiled application and SoftDevice onto the development board.

Adding Source Files

Steps to add existing or create new source files into the SES project directory.

Including Header Files

Add header file paths to user include directories in SES for project compilation.

Communicating with the Board

Connecting via RTT

Establishing Real Time Transfer (RTT) communication for debugging and logging via J-Link.

Connecting via CDC-UART

Connect to the board using CDC-UART via a terminal emulator for serial communication.

Testing the Application

Testing with a Mobile Device

Use nRF Connect mobile app to test Bluetooth Low Energy applications.

Testing with a Computer

Use nRF Connect for Desktop to test applications with a DK or dongle.

Debugging

Glossary

Acronyms and Abbreviations

Legal Notices

Related product manuals