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

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

commit c6d2e55b7c3505aa6c2c6ea4e9421599b9f9d804
Author: Daniel P. Carvalho <[email protected]>
AuthorDate: Fri Oct 23 03:13:02 2026 -0300

    boards/sim: add a taskmonitor configuration.
    
    Add the taskmonitor configuration, which enables the task supervision
    of the watchdog auto-monitor on top of the simulated watchdog, and the
    taskwdt_test application that exercises it, and document it.
    
    Assisted-by: Claude Code:claude-sonnet-5-5
    Signed-off-by: Daniel P. Carvalho <[email protected]>
---
 .../platforms/sim/sim/boards/sim/index.rst         | 10 +++
 boards/sim/sim/sim/configs/taskmonitor/defconfig   | 93 ++++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/Documentation/platforms/sim/sim/boards/sim/index.rst 
b/Documentation/platforms/sim/sim/boards/sim/index.rst
index f23d8c482c3..94a25837964 100644
--- a/Documentation/platforms/sim/sim/boards/sim/index.rst
+++ b/Documentation/platforms/sim/sim/boards/sim/index.rst
@@ -1827,6 +1827,16 @@ the timeout expires::
 
     nsh> wdog
 
+taskmonitor
+-----------
+
+This configuration enables the task supervision of the watchdog auto-monitor
+(``CONFIG_WATCHDOG_AUTOMONITOR_TASKS``) on top of ``CONFIG_WATCHDOG_WDOG``, 
which
+powers the simulator off with status 77 when it expires, because the simulator
+cannot reset. It enables the ``taskwdt_test`` application; run it without
+arguments for the list of test cases. The cases that end in a system reset make
+the simulator exit with that status.
+
 vpnkit
 ------
 
diff --git a/boards/sim/sim/sim/configs/taskmonitor/defconfig 
b/boards/sim/sim/sim/configs/taskmonitor/defconfig
new file mode 100644
index 00000000000..6340481a525
--- /dev/null
+++ b/boards/sim/sim/sim/configs/taskmonitor/defconfig
@@ -0,0 +1,93 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+CONFIG_ARCH="sim"
+CONFIG_ARCH_BOARD="sim"
+CONFIG_ARCH_BOARD_SIM=y
+CONFIG_ARCH_CHIP="sim"
+CONFIG_ARCH_SIM=y
+CONFIG_BOARDCTL_APP_SYMTAB=y
+CONFIG_BOARDCTL_POWEROFF=y
+CONFIG_BOARD_LOOPSPERMSEC=0
+CONFIG_BOOT_RUNFROMEXTSRAM=y
+CONFIG_BUILTIN=y
+CONFIG_COVERAGE_ALL=y
+CONFIG_COVERAGE_TOOLCHAIN=y
+CONFIG_DEBUG_ASSERTIONS=y
+CONFIG_DEBUG_ASSERTIONS_EXPRESSION=y
+CONFIG_DEBUG_FEATURES=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DEV_GPIO=y
+CONFIG_DEV_LOOP=y
+CONFIG_ETC_FATDEVNO=2
+CONFIG_ETC_ROMFS=y
+CONFIG_ETC_ROMFSDEVNO=1
+CONFIG_EXAMPLES_GPIO=y
+CONFIG_EXAMPLES_HELLO=y
+CONFIG_EXPERIMENTAL=y
+CONFIG_FAT_LCNAMES=y
+CONFIG_FAT_LFN=y
+CONFIG_FS_BINFS=y
+CONFIG_FS_FAT=y
+CONFIG_FS_HOSTFS=y
+CONFIG_FS_LINKS=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_RAMMAP=y
+CONFIG_FS_ROMFS=y
+CONFIG_GPIO_LOWER_HALF=y
+CONFIG_HAVE_CXXINITIALIZE=y
+CONFIG_IDLETHREAD_STACKSIZE=4096
+CONFIG_INIT_ENTRYPOINT="init_main"
+CONFIG_IOEXPANDER=y
+CONFIG_IOEXPANDER_DUMMY=y
+CONFIG_LIBC_ENVPATH=y
+CONFIG_LIBC_EXECFUNCS=y
+CONFIG_LIBC_LOCALE=y
+CONFIG_LIBC_LOCALE_CATALOG=y
+CONFIG_LIBC_LOCALE_GETTEXT=y
+CONFIG_LIBC_MAX_EXITFUNS=1
+CONFIG_LIBC_NUMBERED_ARGS=y
+CONFIG_NDEBUG=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FILE_APPS=y
+CONFIG_NSH_READLINE=y
+CONFIG_PATH_INITIAL="/bin"
+CONFIG_PIPES=y
+CONFIG_PSEUDOFS_ATTRIBUTES=y
+CONFIG_PSEUDOFS_FILE=y
+CONFIG_READLINE_CMD_HISTORY=y
+CONFIG_READLINE_EDIT_EMACS=y
+CONFIG_READLINE_TABCOMPLETION=y
+CONFIG_RTC=y
+CONFIG_RTC_ARCH=y
+CONFIG_RTC_DRIVER=y
+CONFIG_SCHED_BACKTRACE=y
+CONFIG_SCHED_CHILD_STATUS=y
+CONFIG_SCHED_EVENTS=y
+CONFIG_SCHED_HAVE_PARENT=y
+CONFIG_SCHED_LPWORK=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_SIM_HOSTFS=y
+CONFIG_SIM_WALLTIME_SIGNAL=y
+CONFIG_START_MONTH=6
+CONFIG_START_YEAR=2008
+CONFIG_SYSTEM_DUMPSTACK=y
+CONFIG_SYSTEM_GCOV=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_NXINIT=y
+CONFIG_TASK_NAME_SIZE=15
+CONFIG_TESTING_OSTEST=y
+CONFIG_TESTING_TASKWDT=y
+CONFIG_WATCHDOG=y
+CONFIG_WATCHDOG_AUTOMONITOR=y
+CONFIG_WATCHDOG_AUTOMONITOR_BY_WORKER=y
+CONFIG_WATCHDOG_AUTOMONITOR_TASKS=y
+CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT=5000
+CONFIG_WATCHDOG_WDOG=y
+CONFIG_WATCHDOG_WDOG_POWEROFF=y
+CONFIG_WATCHDOG_WDOG_STATUS=77

Reply via email to