1.. _nrf54lm20bsim:
2
3NRF54LM20 simulated board (BabbleSim)
4#####################################
5
6.. contents::
7   :depth: 1
8   :backlinks: entry
9   :local:
10
11
12Overview
13********
14
15To allow simulating nRF54LM20 SOCs, a Zephyr target board is provided: the
16``nrf54lm20bsim/nrf54lm20/cpuapp``.
17
18This uses `BabbleSim`_ to simulate the radio activity, and the
19:ref:`POSIX architecture<Posix arch>` and the `native simulator`_ to
20run applications natively on the development system. This has the benefit of
21providing native code execution performance and easy debugging using
22native tools, but inherits :ref:`its limitations <posix_arch_limitations>`.
23
24Just like for the nrf54lm20dk target, the nrf54lm20bsim/nrf54lm20/cpuapp build target provides
25support for the application core, on the simulated nRF54LM20 SOC.
26
27.. note::
28
29   Unlike real nRF54LM20 devices, the nrf54lm20bsim target has unlimited RAM, and code does not
30   occupy its RRAM.
31
32.. note::
33
34   This simulated target does **not** yet support targeting the cpuflpr core.
35
36.. warning::
37
38   This target is experimental.
39
40This board includes models of some of the nRF54LM20 SOC peripherals:
41
42* AAR (Accelerated Address Resolver)
43* CCM (AES CCM mode encryption)
44* CLOCK (Clock control)
45* CRACEN (Crypto Accelerator Engine)
46* DPPI (Distributed Programmable Peripheral Interconnect)
47* ECB (AES electronic codebook mode encryption)
48* EGU (Event Generator Unit)
49* FICR (Factory Information Configuration Registers)
50* GPIO & GPIOTE
51* GRTC (Global Real-time Counter)
52* PPIB (PPI Bridge)
53* RADIO
54* RRAMC (Resistive RAM Controller)
55* TEMP (Temperature sensor)
56* TIMER
57* UARTE (UART with Easy DMA)
58* UICR (User Information Configuration Registers)
59
60and will use the same drivers as the nrf54lm20dk targets for these.
61For more information on what is modeled to which level of detail,
62check the `HW models implementation status`_.
63
64.. _BabbleSim:
65   https://BabbleSim.github.io
66
67.. _native simulator:
68   https://github.com/BabbleSim/native_simulator/blob/main/docs/README.md
69
70.. _HW models implementation status:
71   https://github.com/BabbleSim/ext_nRF_hw_models/blob/main/docs/README_impl_status.md
72
73
74Building for, and using this board
75**********************************
76
77You can follow the instructions from the :ref:`nrf52_bsim board <nrf52bsim_build_and_run>`.
78Simply change the board/target appropriately when building.
79
80
81TrustZone, TF-M and other security considerations
82*************************************************
83
84The same considerations as for the :ref:`nrf54l15bsim<nrf54l15bsim_tz>` target apply to this.
85