Building and programming with nRF54L15 DK
This guide provides instructions on how to build and program the nRF54L15 development kit. Whether you are working with single or multi-image builds, the following sections will guide you through the necessary steps.
Depending on the sample, you must program only the application core or both the Fast Lightweight Peripheral Processor (FLPR) and the application core. Additionally, the process will differ based on whether you are working with a single-image or multi-image build.
Note
The following instructions do not include multi-image single-core builds scenario.
Building for the application core only
Building for the application core only follows the default building process for the nRF Connect SDK. For instructions, see how the Building an application page.
Building for the application and FLPR core
Building for both the application and the FLPR cores is different from the default nRF Connect SDK procedure. Using the FLPR core also requires additional configuration to enable it. This section outlines how to build and program for both the application and FLPR core, covering separate builds and sysbuild configurations. The FLPR core supports two variants:
nrf54l15dk/nrf54l15/cpuflpr
, where FLPR runs from SRAM, which is the recommended method. To build FLPR image with this variant, the application core image must include thenordic-flpr
snippet.nrf54l15dk/nrf54l15/cpuflpr/xip
, where FLPR runs from RRAM. To build FLPR image with this variant, the application core image must include thenordic-flpr-xip
snippet.
Standard build
This subsection focuses on how to build an application using sysbuild.
Note
Currently, the documentation does not cover specific instructions for building an application image that uses sysbuild to incorporate the FLPR core as a sub-image. The only documented scenario is for building FLPR as the main image and the application as a sub-image.
Complete the following steps:
This option automatically programs the FLPR core with dedicated bootstrapping firmware.
To build and flash both images, run the following command that performs a pristine build:
west build -p -b nrf54l15dk/nrf54l15/cpuflpr
west flash
If your application involves creating custom images for both the application core and the FLPR core, make sure to disable the VPR bootstrapping sample.
You can do this by disabling the SB_CONFIG_VPR_LAUNCHER
option when building for the FLPR target.
For more details, see how to configure Kconfig.
To build and flash both images, run the following command that performs a pristine build:
west build -p -b nrf54l15dk/nrf54l15/cpuflpr -- -DSB_CONFIG_VPR_LAUNCHER=n
west flash
Separate images
You can build and program application sample and the FLPR sample as separate images using the nRF Connect for VS Code extension or command line. To use nRF Util, see Programming application firmware on the nRF54L15 SoC. Depending on the selected method, complete the following steps:
Note
The nRF Connect for VS Code extension currently offers experimental support for the nRF54L15’s FLPR core. Certain features, particularly debugging, may not function as expected.
Open the nRF Connect for VS Code extension.
Complete the steps listed on the How to build an application page in the nRF Connect for VS Code extension documentation.
Build the application image by setting the following options:
Board target to
nrf54l15dk/nrf54l15/cpuapp
.Choose either
nordic-flpr
ornordic-flpr-xip
snippet depending on the FLPR image target.System build to No sysbuild.
For more information, see Providing CMake options.
Build the FLPR image by setting the following options:
Board target to
nrf54l15dk/nrf54l15/cpuflpr
(recommended) ornrf54l15dk/nrf54l15/cpuflpr/xip
.System build to No sysbuild.
For more information, see Providing CMake options.
Start the toolchain environment in a terminal window.
Build the application core image, and based on your build target include the appropriate snippet:
west build -p -b nrf54l15dk/nrf54l15/cpuapp -S nordic-flpr --no-sysbuild
Program the application core image by running the west flash command without –erase.
west flash
Build the FLPR core image:
west build -p -b nrf54l15dk/nrf54l15/cpuflpr --no-sysbuild
You can also customize the command for additional options, by adding build parameters.
Once you have successfully built the FLPR core image, program it by running the west flash command without –erase.
west flash