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 #25 background imageLoading...
Page #25 background image
Programming an application
To create a file, right-click your project or any subfolder in the Project Explorer and select Add New
File.
By default, the file is created in the project directory.
8.6.2 Including header files
Required header files must be linked to your project by adding their path to the user include directories.
Header files contain function declarations and macro definitions. You can request the use of header files
by adding a #include preprocessing directive in your source files.
Header files are not linked to the project through the Project Explorer. To include a header file so that SES
can find it, you must add its path to the list of directories in which SES looks for header files:
1. In the Project Explorer, right-click your project and select Edit Options.
2. In the Project Options window, select the Common configuration (sorted under Private
Configurations).
3. Select Preprocessor.
4. Double-click User Include Directories and add the path to the folder that contains the header file.
You can specify an absolute path or a path that is relative to the project directory. Using a relative path
is preferable if you might want to move or copy your project to, for example, a new SDK version in the
future.
1159720_163 v1.1
25
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