Running Bluetooth Mesh samples on other platforms
The Bluetooth Mesh samples are provided with support for a subset of available Nordic Semiconductor boards and SoCs. However, you can adapt several samples to run on other platforms. The following sections describe how to do this.
Running samples on the nRF54LM20B SoC
The nRF54LM20B SoC has a similar peripheral set and memory layout to the nRF54LM20A SoC. Because of this, Bluetooth Mesh samples that support the nRF54LM20A SoC can typically also run on the nRF54LM20B SoC.
To build a Bluetooth Mesh sample that already supports the nRF54LM20A SoC for the nRF54LM20B SoC target, complete the following steps:
In the sample’s
boardsdirectory, copy each file related to nRF54LM20A (meaning, files withnrf54lm20ain the filename), if there are any. Rename each copied file by replacingnrf54lm20awithnrf54lm20b. If the sample is otherwise unmodified, these files typically do not require additional content changes.Build the sample with
-b nrf54lm20dk/nrf54lm20b/cpuappto target the nRF54LM20B SoC. For any build configuration beyond the board target, follow the sample-specific build and run instructions in the sample documentation.
For example, the Bluetooth Mesh NLC: Lightness Controller/Energy Monitor sample includes board files for the nRF54LM20A SoC, and you can adapt it to run on the nRF54LM20B SoC as follows:
Copy the following files from
samples/bluetooth/mesh/light_ctrl/boardsto the same directory:samples/bluetooth/mesh/light_ctrl/boards/nrf54lm20dk_nrf54lm20a_cpuapp.confsamples/bluetooth/mesh/light_ctrl/boards/nrf54lm20dk_nrf54lm20a_cpuapp_emds.overlay
Rename each copied file by replacing
nrf54lm20awithnrf54lm20b.Build the sample using
west build -b nrf54lm20dk/nrf54lm20b/cpuapp, orwest build -b nrf54lm20dk/nrf54lm20b/cpuapp -- -DFILE_SUFFIX=emdsto build the sample with EMDS support.