Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created April 16, 2026 22:55
Show Gist options
  • Select an option

  • Save lupyuen/1137f3ec3d02e062affb34e4815e62d2 to your computer and use it in GitHub Desktop.

Select an option

Save lupyuen/1137f3ec3d02e062affb34e4815e62d2 to your computer and use it in GitHub Desktop.
luppy@thinkstation:~/nuttx-release$ cd /tmp
luppy@thinkstation:/tmp$ mkdir 260417
luppy@thinkstation:/tmp$ cd 260417
luppy@thinkstation:/tmp/260417$ git clone https://github.com/acassis/incubator-nuttx --branch fix_modbus_loc nuttx
Cloning into 'nuttx'...
remote: Enumerating objects: 898632, done.
remote: Counting objects: 100% (666/666), done.
remote: Compressing objects: 100% (327/327), done.
remote: Total 898632 (delta 435), reused 339 (delta 339), pack-reused 897966 (from 2)
Receiving objects: 100% (898632/898632), 360.09 MiB | 16.84 MiB/s, done.
Resolving deltas: 100% (704623/704623), done.
Updating files: 100% (26005/26005), done.
luppy@thinkstation:/tmp/260417$ git clone https://github.com/apache/nuttx-apps apps ;
Cloning into 'apps'...
remote: Enumerating objects: 99190, done.
remote: Counting objects: 100% (1841/1841), done.
remote: Compressing objects: 100% (590/590), done.
remote: Total 99190 (delta 1485), reused 1258 (delta 1251), pack-reused 97349 (from 4)
Receiving objects: 100% (99190/99190), 27.73 MiB | 16.47 MiB/s, done.
Resolving deltas: 100% (79462/79462), done.
luppy@thinkstation:/tmp/260417$ cd nuttx
luppy@thinkstation:/tmp/260417/nuttx$ ./tools/refresh.sh --silent stm32f4discovery:modbus_slave
[1/1] Normalize stm32f4discovery:modbus_slave
/usr/bin/bash: line 1: arm-none-eabi-gcc: command not found
/usr/bin/bash: line 1: arm-none-eabi-gcc: command not found
9d8
< # CONFIG_MB_TCP_ENABLED is not set
32,33d30
< CONFIG_INDUSTRY_MODBUS=y
< CONFIG_INDUSTRY_MODBUS_SLAVE=y
Saving the new configuration file
luppy@thinkstation:/tmp/260417/nuttx$ git diff
diff --git a/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig b/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig
index 0eba5c05bc..e574e4de0b 100644
--- a/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig
+++ b/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_MB_TCP_ENABLED is not set
# CONFIG_NSH_ARGCAT is not set
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
# CONFIG_NSH_DISABLE_MB is not set
@@ -29,8 +28,6 @@ CONFIG_EXAMPLES_MODBUS_PORT=1
CONFIG_FS_PROCFS=y
CONFIG_HAVE_CXX=y
CONFIG_HAVE_CXXINITIALIZE=y
-CONFIG_INDUSTRY_MODBUS=y
-CONFIG_INDUSTRY_MODBUS_SLAVE=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LINE_MAX=64
luppy@thinkstation:/tmp/260417/nuttx$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment