Hi all,
When using external rtc the function up_rtc_initialize() in file
nuttx/sched/clock_initialize.c should not be called.
A small fix is attached.
Best regards
--- nx12.1-orig/nuttx/sched/clock/clock_initialize.c 2022-12-13
09:30:57.000000000 +0200
+++ nx12.1-new/nuttx/sched/clock/clock_initialize.c 2023-04-21
22:00:12.918932964 +0300
@@ -210,7 +210,8 @@
up_timer_initialize();
#endif
-#if defined(CONFIG_RTC)
+#if defined(CONFIG_RTC) && !defined(CONFIG_RTC_EXTERNAL)
+
/* Initialize the internal RTC hardware. Initialization of external RTC
* must be deferred until the system has booted.
*/