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. There will be two HEX files in the folder, one for the application core (peripheral_hr.hex) and one for the network core (hci_open_amp.hex).
  1. Power up the nRF53 development board:
    1. Connect one end of a micro-USB 2.0 cable to the USB connector on the board and the other end to one of your PC's USB host ports.
    2. Slide the power switch to "ON".
    Power up the development board
    Observe that LED1 starts blinking.
  2. Install nRF Command Line Tools v10.5.0 or later. See Installing the nRF5x Command Line Tools for more information.
  3. Open a command prompt in the folder where you extracted the demo application.
  4. Enter the following commands:
    1. nrfjprog --version
      Verify the command returns a version greater than or equal to 10.5.0.
    2. nrfjprog -f NRF53 --coprocessor CP_NETWORK -–eraseall
    3. nrfjprog -f NRF53 --coprocessor CP_NETWORK --program hci_open_amp.hex
    4. nrfjprog -f NRF53 --eraseall
    5. nrfjprog -f NRF53 --program peripheral_hr.hex
    6. 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. Tap Connect.
  9. Select Zephyr Heartrate Sensor.
    A simulated heart rate and battery charge percentage is displayed.
For more advanced testing scenarios, see Testing the application.