Skip to main content

How to Use NX15 with the Arduino Platform

This guide targets the KORLINX NX15 Dev Kit, an evaluation board built around the nRF54L15-based NX15 module. KORLINX provides the NX15 board definition through KORLINX Zephyr Boards.

info

Arduino core release This guide was tested with KORLINX core 0.2.0, which adds the KORLINX NX15 (nRF54L15) board to Arduino IDE. Select version 0.2.0 when following this guide. The core is based on Arduino Core for Zephyr and is not affiliated with or endorsed by Arduino.

NX15 Dev Kit with the Arduino Platform

What you will build​

Install the NX15 core, compile a sketch that switches the red user LED on and off every 500 ms, then verify a periodic message through the board's USB-to-UART interface.

The NX15 workflow uses two host connections:

  • J-Link over SWD programs the Arduino loader and sketch.
  • USB Type-C through the onboard USB-to-UART interface powers the Dev Kit and provides the Serial connection.

Supported host platforms​

Arduino IDE 2.x is available for Windows, macOS, and Linux. KORLINX core 0.2.0 does not publish a validated host OS compatibility matrix, so confirm Arduino IDE and J-Link operation on the host used for development.

Before you begin​

Required hardware​

ItemRequirement
Development boardNX15 Dev Kit; record its revision and fitted module model
USB cableData-capable cable matching the board's USB Type-C connector
Programming interfaceSEGGER J-Link debug probe compatible with the nRF54L15
Debug wiringSWD cable or adapter for NRESET, SWDCLK, GND, SWDIO, and VTref (3V3)
Host computerOperating system supported by both Arduino IDE and the selected core/uploader

A bare NX15 module additionally needs a carrier, suitable power design, and accessible debug signals.

tip

Use data-capable USB cables The NX15 Dev Kit and J-Link each connect to the host through USB. Use data-capable cables for both devices. A charge-only cable can power a device without exposing the USB serial port or debug probe to the host.

Required software​

  • Arduino IDE.
  • KORLINX Zephyr Boards version 0.2.0, the version tested with this guide.
  • SEGGER J-Link software when using a J-Link probe.
  • USB-to-UART drivers if required by the host operating system.

A complete host OS compatibility matrix is not stated in the release notes.

Before connecting external hardware​

The Arduino pin names below are software mappings from core 0.2.0. Check the NX15 Dev Kit Hardware guide before connecting external circuits, and confirm connector positions and electrical limits for the board revision in use.

Step 1: Install Arduino IDE​

  1. Download Arduino IDE from the official software page.
  2. Install Arduino IDE 2.x using the normal procedure for the host operating system.
  3. Start Arduino IDE.

Step 2: Add the KORLINX board-package index​

Use the package index published with the KORLINX ArduinoCore-zephyr release.

Add the Boards Manager URL​

  1. Open Arduino IDE preferences:
    • Windows or Linux: File > Preferences
    • macOS: Arduino IDE > Settings
  2. Find Additional Boards Manager URLs.
  3. Add this URL. If other URLs are already configured, keep them and add this as a separate entry:
https://github.com/KORLINX/ArduinoCore-zephyr/releases/latest/download/package_korlinx_index.json
  1. Select OK to save the settings.
Arduino IDE Preferences with the KORLINX board-package index URL

Add the complete KORLINX package-index URL under Additional Boards Manager URLs.

Install KORLINX Zephyr Boards​

  1. Open Tools > Board > Boards Manager.
  2. Search for KORLINX Zephyr Boards.
  3. Select version 0.2.0, then select Install.
  4. Wait for the core and its tool dependencies to finish installing.
  5. Confirm that KORLINX NX15 (nRF54L15) appears under the KORLINX Zephyr Boards platform.
KORLINX Zephyr Boards package ready to install in Arduino IDE Boards Manager

Confirm that KORLINX Zephyr Boards is installed and that the NX15 board is available.

When using a J-Link probe, also install the SEGGER J-Link Software and Documentation Pack.

Uploading to NX15 requires a programming connection in addition to the board's USB connection. This guide uses a SEGGER J-Link probe connected through SWD. The USB Type-C connection provides board power and access to the onboard USB-to-UART interface.

NX15 Dev Kit connected to a SEGGER J-Link probe through SWD

NX15 SWD connection points and the connection to a SEGGER J-Link probe through a compatible flat cable or adapter.

Connect the J-Link probe to the labeled NX15 SWD pads as follows:

NX15 Dev Kit SWD pads labeled NRESET, SWDCLK, GND, SWDIO, and 3V3
J-Link signalNX15 padFunction
nRESETNRESETTarget reset
SWCLKSWDCLKSWD clock
GNDGNDCommon ground
SWDIOSWDIOBidirectional SWD data
VTref3V3Target-voltage reference
  1. Disconnect the NX15 Dev Kit and J-Link probe from USB before making the SWD connections.
  2. Connect each J-Link signal to the corresponding NX15 pad shown in the table. Check the pinout of the specific J-Link cable or adapter before wiring it.
  3. Connect the NX15 Dev Kit to the host through USB Type-C to power the board and enable the USB-to-UART interface.
  4. Connect the J-Link probe to the host through USB.
  5. Check that both USB connections are secure before uploading a sketch.

The J-Link VTref connection senses the board's 3.3 V I/O level. Power the board through its intended power input; do not configure the probe to supply target power unless the hardware documentation for the exact probe and board setup explicitly permits it. See the NX15 SWD preparation guide for additional connection precautions.

note

Programming and serial communication A visible USB serial port confirms USB-to-UART enumeration. It does not by itself establish a serial firmware-upload path. Use the programming method specified by the validated NX15 core. The NX40 UF2/DFU bootloader procedure is not an NX15 procedure.

Step 4: Select the board and uploader​

  1. Select Tools > Board > KORLINX Zephyr Boards > KORLINX NX15 (nRF54L15).
  2. Keep these board options for the first test:
    • Debug: Standard
    • Link mode: Dynamic
  3. Confirm that the J-Link connected in Step 3 remains connected to the host and NX15 SWD interface.
  4. Select the USB serial port when using Serial Monitor. This port is not the J-Link programming connection.
Arduino IDE dialog with KORLINX NX15 and the USB serial port selected

Select KORLINX NX15 and the USB serial port used by Serial Monitor.

Use Debug mode when loader diagnostics are needed. Use Static link mode only when the application specifically requires it; it produces a different upload artifact from the default Dynamic mode.

The core uses pyOCD to discover and program supported debug probes. If several probes are connected, disconnect the probes that are not used before uploading.

Open File > Examples > 01.Basics > Blink, then save the sketch as nx15_blink.

Arduino IDE menu path for opening the built-in Blink example

Open the built-in Blink example before replacing it with the NX15-specific sketch.

Core 0.2.0 defines the built-in LED as LED_BUILTIN and its active level as LED_STATE_ON:

void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
digitalWrite(LED_BUILTIN, LED_STATE_ON);
delay(500);
digitalWrite(LED_BUILTIN, 1 - LED_STATE_ON);
delay(500);
}

The release also defines LED_RED, LED_BLUE, LED_GREEN, and LED_RUN. Start with LED_BUILTIN to verify the core and upload path.

Step 6: Compile and program​

After installing the core and connecting J-Link:

  1. Select Verify and wait for compilation to complete without errors.
  2. Confirm that KORLINX NX15 (nRF54L15), Standard, and Dynamic remain selected.
  3. Confirm that J-Link is connected and detected, then select Upload.
  4. Wait until the upload output reports Upload finished.

NX15 has no USB bootloader in this workflow. Core 0.2.0 uses its included uploader with J-Link to write the Arduino Zephyr loader from 0x00000000 and the user sketch from 0x00060000. During later uploads, the uploader checks the installed loader and writes it again only when it differs from the packaged loader.

The first upload can therefore take longer than a sketch-only update. The upload output reports either Uploading the Arduino firmware and the sketch. or The Arduino firmware on the board is up to date; uploading the sketch only.

Arduino IDE showing the NX15 Blink sketch and successful J-Link upload output

The NX15 Blink sketch after a successful upload through the connected J-Link debug probe.

Step 7: Confirm the result​

The LED selected by the confirmed mapping should be on for approximately 500 ms and off for approximately 500 ms, repeatedly. Observe the user LED rather than the power or charging indicator.

If it stays unchanged, check the programmed image, selected board, GPIO mapping, polarity, and reset behavior.

Optional: Verify UART output​

Create a separate sketch named nx15_uart. Core 0.2.0 routes Serial through the onboard USB-to-UART interface:

void setup() {
Serial.begin(115200);
}

void loop() {
Serial.println("KORLINX NX15 Arduino is running");
delay(1000);
}

Program the sketch using the confirmed workflow. Open Tools > Serial Monitor on the USB serial port and select 115200 baud. Expected application text:

KORLINX NX15 Arduino is running

The screenshot below shows the expected message repeated in Arduino IDE Serial Monitor.

Arduino IDE Serial Monitor displaying periodic output from an NX15 sketch

The USB Serial Monitor displays the NX15 test message approximately once per second.

Arduino pin aliases in core 0.2.0​

Use symbolic names in sketches where the core provides them. These mappings come from the NX15 variant included in KORLINX core 0.2.0.

Arduino symbol or objectDev Kit functionCore mapping
LED_REDRed user LEDArduino pin 11 / P1.09, active-high
LED_BLUEBlue user LEDArduino pin 8 / P0.04, active-high
LED_GREENGreen user LEDArduino pin 19 / P2.03, active-high
LED_RUNRun LEDArduino pin 14 / P2.01, active-high
PIN_BUTTON1User buttonArduino pin 7 / P1.10, active-low
SerialOnboard USB-to-UART interfaceRX pin 21 / P1.12; TX pin 22 / P1.13
WireI²CSDA pin 6 / P2.02; SCL pin 23 / P1.15
A0–A4Core analog aliases; J3 exposes A0 and A1A0=P1.04, A1=P1.05, A2=P1.06, A3=P1.07, A4=P1.11
A5 / PIN_VBATBattery-divider inputP1.14; not a general external analog input
PIN_6D_INT1IMU interruptArduino pin 12 / P2.04
PIN_6D_CSIMU chip selectArduino pin 17 / P2.05; held high for I²C mode

The core also defines charger-control and status aliases. Review the board schematic and core source before changing charger pins or using pins connected to onboard devices. Hardware presence alone does not confirm that a compatible Arduino library is available.

NX15 code examples​

The samples directory in the KORLINX Arduino core provides the following examples for learning the APIs available on NX15.

ExampleWhat it demonstrates
analog_inputReads an analog input and reports the converted value
attach_interruptHandles a GPIO interrupt with attachInterrupt()
blinky_arduinoBlinks an LED with the Arduino API
button_press_ledReads the user button and controls an LED
fadeChanges LED brightness with PWM
hello_arduinoPrints a basic Arduino application message
i2cdemoDemonstrates I²C communication through Wire
serial_eventProcesses incoming serial data with a serial event handler
spi_controllerUses NX15 as an SPI controller
threads_arduinoRuns Arduino work in multiple Zephyr threads

Open an example directory to review its source and project files. Confirm the required wiring and pin aliases against the NX15 Dev Kit hardware page before connecting an external circuit.

Troubleshooting​

SymptomWhat to check
NX15 board entry is missingConfirm the package index URL and install KORLINX Zephyr Boards 0.2.0
Arduino IDE cannot access J-LinkCheck both USB data cables, SEGGER software, host permissions, and the J-Link USB connection
Probe cannot detect the targetCheck target power, 3V3/VTref, common ground, SWDIO, SWDCLK, NRESET, and nRF54L15 support
Upload fails when several probes are connectedDisconnect unused debug probes and retry with only the intended J-Link attached
USB serial port appears but upload failsConfirm the programming interface and core upload recipe
Programming succeeds but no LED blinksCheck target, image, pin mapping, polarity, and reset
Serial Monitor is blankCheck the USB serial port, baud rate, UART object, pin routing, and flow control
Sensor example failsCheck exact sensor, library compatibility, bus routing, and power

References​