Last active
April 16, 2026 22:57
-
-
Save lupyuen/b586d7ed6240ebeaa78fec217a96e194 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Last login: Thu Apr 16 09:31:04 on ttys005 | |
| ➜ ~ $ cd /tmp | |
| ➜ /tmp $ mkdir 260417 | |
| ➜ /tmp $ cd 260417 | |
| ➜ 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 | 17.70 MiB/s, done. | |
| Resolving deltas: 100% (704623/704623), done. | |
| Updating files: 100% (26005/26005), done. | |
| ➜ 260417 $ git clone https://github.com/apache/nuttx-apps apps | |
| Cloning into 'apps'... | |
| remote: Enumerating objects: 99190, done. | |
| remote: Counting objects: 100% (1839/1839), done. | |
| remote: Compressing objects: 100% (584/584), done. | |
| remote: Total 99190 (delta 1486), reused 1262 (delta 1255), pack-reused 97351 (from 4) | |
| Receiving objects: 100% (99190/99190), 27.73 MiB | 11.04 MiB/s, done. | |
| Resolving deltas: 100% (79459/79459), done. | |
| ➜ 260417 $ cd nuttx | |
| ➜ nuttx git:(fix_modbus_loc) $ ./tools/refresh.sh --silent stm32f4discovery:modbus_slave | |
| [1/1] Normalize stm32f4discovery:modbus_slave | |
| /bin/bash: arm-none-eabi-gcc: command not found | |
| /bin/bash: 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 | |
| ➜ nuttx git:(fix_modbus_loc) ✗ $ 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 | |
| ➜ nuttx git:(fix_modbus_loc) ✗ $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment