Nordic Semiconductor nRF53 Series Getting Started Manual

Developing with nrf connect sdk

Advertisement

Quick Links

nRF53 Series: Developing
with nRF Connect SDK
Getting Started Guide
v1.0
4406_488 v1.0 / 2019-11-13

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the nRF53 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Nordic Semiconductor nRF53 Series

  • Page 1 Series: Developing with nRF Connect SDK Getting Started Guide v1.0 4406_488 v1.0 / 2019-11-13...
  • Page 2: Table Of Contents

    Contents Revision history ........Introduction ........Minimum requirements .
  • Page 3: Revision History

    Revision history Date Version Description November 2019 1.0 First release 4406_488 v1.0...
  • Page 4: Introduction

    • nRF5 Series: Developing with SEGGER Embedded Studio • nRF5 Series: Developing on Windows with ARM Keil MDK • nRF53 Series: Developing with nRF Connect SDK (this document) Check out the Nordic DevZone for additional setup information and help. 4406_488 v1.0...
  • Page 5: Minimum Requirements

    Minimum requirements Ensure that you have all the required hardware and that your computer fulfills the software requirements. Hardware requirements • nRF5340 PDK • Micro-USB 2.0 cable • Personal computer (PC) or Mac ® • Smartphone or tablet that supports Bluetooth Low Energy Software requirements One of the following operating systems:...
  • Page 6: Related Documentation

    Related documentation In addition to the information in this document, you may need to refer to other documents. Development Kit User Guides nRF5340 PDK Compatibility Matrices nRF5340 Compatibility Matrix Tools User Guides nRF Connect Bluetooth Low Energy nRF Connect SDK documentation nRF Connect Programmer 4406_488 v1.0...
  • Page 7: Running A First Test

    Running a first test Before you start developing, program and run a precompiled application on your development board to ensure that the board functions as expected and the communication between your computer and your development board works. Before you begin, download the Heart Rate Monitor HRM) demo application from nRF5340 PDK Downloads and extract it into a folder of your choice.
  • Page 8 Running a first test e) nrfjprog -f NRF53 --program peripheral_hr.hex f) nrfjprog --pinreset 5. Download and install the Nordic nRF Toolbox app from Google Play or App Store. 6. Open nRF Toolbox. Note: Enable Bluetooth if prompted. 7. Tap HRM. 8.
  • Page 9: Setting Up Your Toolchain

    Setting up your toolchain Before you can start developing, you must install the required software. This software includes tools to connect to your development board, an Integrated Development Environment (IDE) for developing your application, and the nRF Connect SDK that provides libraries and example applications. The following software is required: •...
  • Page 10: Programming An Application

    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. Use the Nordic Edition of the SEGGER Embedded Studio IDE to build and program an nRF Connect SDK sample.
  • Page 11: Communicating With The Board

    Communicating with the board Unless you programmed a very simple application, you probably want to connect to the board from your computer to display logging information or send input. You can use Universal Asynchronous Receiver/ Transmitter (UART) for communicating with the board. Connecting via UART is quick and power-efficient, but it requires dedicated use of the UART peripheral for logging.
  • Page 12 Communicating with the board 4. Select the correct COM port to connect to the board. To find the correct port, follow these steps: a) Go to the start menu in Windows and type devmgmt.msc to open the Device Manager. b) Scroll down and expand Ports (COM & LPT). c) Find the port named JLink CDC UART Port and note down the number in parentheses.
  • Page 13: Testing The Application

    Testing the application The next step after compiling and programming your application is to test it. Nordic Semiconductor provides its own testing tool, nRF Connect, which is available both for mobile and for desktop. 8.1 Testing with a mobile device If you have a mobile device that supports Bluetooth Low Energy, download the nRF Connect app from Google Play or App Store to test your application.
  • Page 14: Testing With A Computer

    Testing the application The text is sent through the PDK to your device, which will display it in the nRF Connect log: 8.2 Testing with a computer If you have another nRF5340 PDK, you can test your application with nRF Connect for Desktop. nRF Connect for Desktop is available for Windows, Linux, and macOS.
  • Page 15 Testing the application 9. Select the UART RX characteristic value. 10.Write 30 31 32 33 34 35 36 37 38 39 (the hexadecimal value for the string "0123456789") and click write. The text "0123456789" is displayed in the terminal that is connected to the board via UART. 11.Enter any text, for example, Hello, in the terminal.
  • Page 16: Debugging

    Debugging To actually see what is happening on the development board while the application is running, you must set up a J-Link debugging session. 1. Open your project in SES. 2. Select Debug > Go. Alternatively, press F5. The debugging interface looks like this: By default, the application will break in main.
  • Page 17: Glossary

    Development Kit that uses a production-ready version of the chip. SEGGER Embedded Studio (SES) A cross-platform IDE for embedded C/C++ programming with support for Nordic Semiconductor devices, produced by SEGGER Microcontroller. System on Chip (SoC) A microchip that integrates all the necessary electronic circuits and components of a computer or other electronic systems on a single integrated circuit.
  • Page 18: Acronyms And Abbreviations

    Acronyms and abbreviations These acronyms and abbreviations are used in this document. Integrated Development Environment Preview Development Kit Software Development Kit SEGGER Embedded Studio System on Chip UART Universal Asynchronous Receiver/Transmitter 4406_488 v1.0...
  • Page 19: Legal Notices

    Nordic Semiconductor ASA customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Nordic Semiconductor ASA for any damages resulting from such improper use or sale.

This manual is also suitable for:

Nrf5340

Table of Contents