This repository contains support files for simulating the internal flash of the NRF52840 SoC with Renode (>=1.15.2).
The peripherals that are contained in this repository are:
include @https://raw.githubusercontent.com/vChavezB/renode-nrf52840_flash/refs/hea
ds/main/nrf52840_nvcm.cs
mach add "my_machine"
machine LoadPlatformDescription @platforms/cpus/nrf52840.repl
machine LoadPlatformDescription @https://raw.githubusercontent.com/vChavezB/renode
-nrf52840_flash/refs/heads/main/nrf52840_flash.repl
from pyrenode3.wrappers import Emulation, Monitor
repo = "https://raw.githubusercontent.com/vChavezB/renode-nrf52840_flash/refs/heads/main"
e = Emulation()
m = Monitor()
res = m.Parse(f"include @{repo}/nrf52840_nvcm.cs")
device = e.add_mach("nrf")
device.load_repl("platforms/cpus/nrf52840.repl")
device.load_repl(f"{repo}/nrf52840_flash.repl")