From d5b34f9ce066fd3d9fa1dd51e4e7c7e894811599 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Thu, 7 Apr 2022 18:04:27 +0200 Subject: [PATCH] Documentation/guides/pysimcoder.rst: update pysimCoder dependencies CONFIG_LIBM option may be required by some toolchains that do not include standard math library. Morover CONFIG_PTHREAD_STACK_MIN was listed twice in the list. Signed-off-by: Michal Lenc --- Documentation/guides/pysimcoder.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/guides/pysimcoder.rst b/Documentation/guides/pysimcoder.rst index 463c86f46a..31fc3fe174 100644 --- a/Documentation/guides/pysimcoder.rst +++ b/Documentation/guides/pysimcoder.rst @@ -41,7 +41,7 @@ in case this documentation was not updated when new fuctionalities were added to NuttX Configuration ------------------- -Several configuration options are neccessary to be set in order to succesfully compile pysimCoder +Several configuration options are necessary to be set in order to succesfully compile pysimCoder with NuttX. The list is the following: ==================================== ===================================== @@ -52,8 +52,8 @@ with NuttX. The list is the following: ``CONFIG_ELF=y`` ``CONFIG_PSEUDOTERM=y`` ``CONFIG_FS_BINFS=y`` ``CONFIG_PTHREAD_CLEANUP=y`` ``CONFIG_FS_PROCFS=y`` ``CONFIG_PTHREAD_MUTEX_TYPES=y`` -``CONFIG_FS_PROCFS_REGISTER=y`` ``CONFIG_PTHREAD_MUTEX_TYPES=y`` -``CONFIG_FS_ROMFS=y`` ``CONFIG_PTHREAD_STACK_MIN=1024`` +``CONFIG_FS_PROCFS_REGISTER=y`` ``CONFIG_PTHREAD_STACK_MIN=1024`` +``CONFIG_FS_ROMFS=y`` ``CONFIG_LIBM=y`` ``CONFIG_FS_TMPFS=y`` ``CONFIG_RR_INTERVAL=10`` ``CONFIG_IDLETHREAD_STACKSIZE=2048`` ``CONFIG_SCHED_WAITPID=y`` ``CONFIG_LIBC_EXECFUNCS=y`` ``CONFIG_SERIAL_TERMIOS=y`` @@ -63,6 +63,12 @@ with NuttX. The list is the following: ``CONFIG_NSH_FILEIOSIZE=512`` ``CONFIG_INIT_ENTRYPOINT="nsh_main"`` ==================================== ===================================== + +Note that ``CONFIG_LIBM=y`` might not be required for toolchains that already include +standard math library. However it is recommended to add ``CONFIG_LIBM=y`` to ensure +math library is included. Subsequently ``CONFIG_LIBC_FLOATINGPOINT=y`` is needed if double values +are to be printed on terminal. + In case you want to use Network and blocks like TCP or UDP, following configuration options are required: