File tree Expand file tree Collapse file tree 1 file changed +42
-2
lines changed Expand file tree Collapse file tree 1 file changed +42
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,48 @@ Doesn't work. No BASEPRI implementation for ``Cotex-M0`` in NuttX.
55
55
nrf52840-dk
56
56
===========
57
57
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() ``
60
100
61
101
stm32f746g-disco
62
102
================
You can’t perform that action at this time.
0 commit comments