Skip to content

Commit a099c63

Browse files
raiden00plxiaoxiang781216
authored andcommitted
Documentation: update notes about nrf52840 and Renode
update notes about nrf52840 and Renode
1 parent 8a70377 commit a099c63

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

Documentation/guides/renode.rst

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,48 @@ Doesn't work. No BASEPRI implementation for ``Cotex-M0`` in NuttX.
5555
nrf52840-dk
5656
===========
5757

58-
Nordic UART peripheral is not supported by Renode, UARTE support
59-
is required (EasyDMA).
58+
``CONFIG_ARMV7M_USEBASEPRI=y`` must be set.
59+
60+
At default Renode uses UART with EasyDMA enabled (UARTE) which is not supported
61+
by Nuttx yet. We can get around this by creating our own machine description
62+
based on Renode default implementation::
63+
64+
using "platforms/cpus/nrf52840.repl"
65+
66+
uart0:
67+
easyDMA: false
68+
69+
Renode script::
70+
71+
using sysbus
72+
73+
mach create
74+
machine LoadPlatformDescription @nrf52840_custom.repl
75+
76+
$bin?=@nuttx
77+
78+
showAnalyzer uart0
79+
80+
macro reset
81+
"""
82+
sysbus LoadELF $bin
83+
"""
84+
85+
runMacro $reset
86+
87+
Tested with ``nrf52840-dk/nsh``.
88+
89+
Known issues:
90+
91+
* ``QSPI`` not implemented in Renode,
92+
93+
* ``PWM`` doesn't work, missing ``NRF52_PWM_EVENTS_SEQSTARTED0_OFFSET``
94+
implementation in Renode,
95+
96+
* ``ADC`` doesn't work, missing ``NRF52_SAADC_EVENTS_CALDONE_OFFSET``
97+
implementation in Renode,
98+
99+
* ``SoftDevice`` doesn't work, crash in ``mpsl_init()``
60100

61101
stm32f746g-disco
62102
================

0 commit comments

Comments
 (0)