Nordic Semiconductor nRF5340

From SEGGER Wiki
Jump to: navigation, search

Reset

APP core

Standard reset strategy is performed.

NET core

Standard reset strategy is performed.

Tracing

This article describes how to get started with trace on the Nordic nRF5340 MCU. This article assumes that there is already a basic knowledge about trace in general (what is trace, what different implementations of trace are there, etc.). If this is not the case, we recommend to read Trace chapter in the J-Link User Manual (UM08001). The Nordic nRF5340 MCU implements tracing via pins, so a J-Trace can be used for tracing.

Minimum requirements

In order to use trace on the Nordic nRF5340 MCU devices, the following minimum requirements have to be met:

  • J-Link software version V7.50 or later
  • Ozone V3.24a or later (if streaming trace and / or the sample project from below shall be used)
  • J-Trace PRO for Cortex-M HW version V1.0 or later

To rebuild the project our IDE Embedded Studio can be used. The recommended version to rebuild the projects is V6.30. But the examples are all prebuild and work out-of-the box with Ozone, so rebuilding is not necessary.

Sample project

Streaming trace

The following sample project (for Nordic nRF5340-DK Rev. 0.11.0) is designed to be used with J-Trace PRO and Ozone to demonstrate streaming trace. The project has been tested with the minimum requirements mentioned above and a nRF5340-DK Rev. 0.11.0 board. The sample project comes with a pre-configured project file for Ozone that runs out-of-the box.

Nordic_nRF5340_APP_TracePins.zip

Note: The example is shipped with a compiled .JLinkScriptfile (.pex), should you need the original source, please get in touch with SEGGER directly via our support system: https://www.segger.com/ticket/.

To create your own .JLinkScriptfile you can use the following project as reference: Tracing on SEGGER_Cortex-M_Trace_Reference_Board

Specifics/Limitations

The Nordic Semiconductor nRF5340 MCU uses a traceclock that is independent from the CPU clock. By hardware it is limited to maximum 32 MHz TCLK.

  • As for many other MCUs from Nordic, the trace clock for this MCU is not linked to the CPU clock.
  • The Nordic nRF5340-DK comes without a trace pin header. It has to be soldered onto the board by the user.
  • For the eval board to support maximum trace clock of 32 MHz modifications to be board are necessary. Solder bridges SB27-30 need to be cut. However be aware that this also disables the VCOM features of the on board J-Link!

Trace is only available on the Application core on this device. The Network core offers no trace logic.

Tested Hardware

This sample project was tested on a Nordic nRF5340-DK evaluation board.

nRF5340-DK