You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/27 09:24:22 UTC

(nuttx) branch master updated: Documentation: update notes about nrf52840 and Renode

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a099c6328e Documentation: update notes about nrf52840 and Renode
a099c6328e is described below

commit a099c6328ebe3c40b9a002cf1d3784e86dce4472
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sun Oct 27 09:37:40 2024 +0100

    Documentation: update notes about nrf52840 and Renode
    
    update notes about nrf52840 and Renode
---
 Documentation/guides/renode.rst | 44 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 42 insertions(+), 2 deletions(-)

diff --git a/Documentation/guides/renode.rst b/Documentation/guides/renode.rst
index e0fa78825a..f996dd6432 100644
--- a/Documentation/guides/renode.rst
+++ b/Documentation/guides/renode.rst
@@ -55,8 +55,48 @@ Doesn't work. No BASEPRI implementation for ``Cotex-M0`` in NuttX.
 nrf52840-dk
 ===========
 
-Nordic UART peripheral is not supported by Renode, UARTE support
-is required (EasyDMA).
+``CONFIG_ARMV7M_USEBASEPRI=y`` must be set.
+
+At default Renode uses UART with EasyDMA enabled (UARTE) which is not supported
+by Nuttx yet. We can get around this by creating our own machine description
+based on Renode default implementation::
+
+  using "platforms/cpus/nrf52840.repl"
+
+  uart0:
+    easyDMA: false
+
+Renode script::
+
+  using sysbus
+
+  mach create
+  machine LoadPlatformDescription @nrf52840_custom.repl
+
+  $bin?=@nuttx
+
+  showAnalyzer uart0
+
+  macro reset
+  """
+    sysbus LoadELF $bin
+  """
+
+  runMacro $reset
+
+Tested with ``nrf52840-dk/nsh``.
+
+Known issues:
+
+* ``QSPI`` not implemented in Renode,
+
+* ``PWM`` doesn't work, missing ``NRF52_PWM_EVENTS_SEQSTARTED0_OFFSET``
+  implementation in Renode,
+
+* ``ADC`` doesn't work, missing ``NRF52_SAADC_EVENTS_CALDONE_OFFSET``
+  implementation in Renode,
+
+* ``SoftDevice`` doesn't work, crash in ``mpsl_init()``
 
 stm32f746g-disco
 ================