stm32h7/linum-stm32h753bi: add modbus master using uart6
This commit is contained in:
parent
aa0dccb7bc
commit
97724cbe6c
@ -393,3 +393,18 @@ can enable the ModBus to respond to queries::
|
||||
In your pc you will be able to read the ModBus registers using an application like ``mbpoll``::
|
||||
|
||||
$ mbpoll -a 10 -b 38400 -t 3 -r 1000 -c 4 /dev/ttyUSB1 -R
|
||||
|
||||
modbus_master
|
||||
-------------
|
||||
|
||||
Configures the ModBus RTU Master located at apps/examples/modbusmaster. This
|
||||
configuration enables a RS485 on USART6.
|
||||
|
||||
After configuring the desired pins on menuconfig and wiring the RS485 converter, you
|
||||
can enable the ModBus Master to create queries for device with address 10::
|
||||
|
||||
nsh> mbmaster
|
||||
|
||||
In your pc you will be able to create a ModBus Slave with address 10 using an application like ``diagslave``::
|
||||
|
||||
$ sudo diagslave -a 10 -b 38400 /dev/ttyUSB0
|
||||
|
@ -0,0 +1,79 @@
|
||||
#
|
||||
# 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_MB_MASTER_FUNC_READWRITE_HOLDING_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_READ_COILS_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_READ_DISCRETE_INPUTS_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_READ_INPUT_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_WRITE_COIL_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_WRITE_HOLDING_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_WRITE_MULTIPLE_COILS_ENABLED is not set
|
||||
# CONFIG_MB_MASTER_FUNC_WRITE_MULTIPLE_HOLDING_ENABLED is not set
|
||||
# CONFIG_NSH_DISABLE_IFCONFIG is not set
|
||||
# CONFIG_NSH_DISABLE_PS is not set
|
||||
# CONFIG_STANDARD_SERIAL is not set
|
||||
# CONFIG_STM32H7_USE_LEGACY_PINMAP is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="linum-stm32h753bi"
|
||||
CONFIG_ARCH_BOARD_LINUM_STM32H753BI=y
|
||||
CONFIG_ARCH_CHIP="stm32h7"
|
||||
CONFIG_ARCH_CHIP_STM32H753BI=y
|
||||
CONFIG_ARCH_CHIP_STM32H7=y
|
||||
CONFIG_ARCH_CHIP_STM32H7_CORTEXM7=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_ARMV7M_DCACHE=y
|
||||
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
|
||||
CONFIG_ARMV7M_DTCM=y
|
||||
CONFIG_ARMV7M_ICACHE=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=43103
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_DEBUG_FEATURES=y
|
||||
CONFIG_DEBUG_SYMBOLS=y
|
||||
CONFIG_EXAMPLES_ALARM=y
|
||||
CONFIG_EXAMPLES_MODBUSMASTER=y
|
||||
CONFIG_EXAMPLES_MODBUSMASTER_PORT=2
|
||||
CONFIG_EXAMPLES_MODBUSMASTER_PROGNAME="mbmaster"
|
||||
CONFIG_EXAMPLES_MODBUSMASTER_SLAVEADDR=10
|
||||
CONFIG_INIT_ENTRYPOINT="nsh_main"
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_LIBM=y
|
||||
CONFIG_MB_PORT_HAS_CLOSE=y
|
||||
CONFIG_MB_RTU_MASTER=y
|
||||
CONFIG_MM_REGIONS=4
|
||||
CONFIG_MODBUS=y
|
||||
CONFIG_MODBUS_MASTER=y
|
||||
CONFIG_NSH_ARCHINIT=y
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_FILEIOSIZE=512
|
||||
CONFIG_NSH_LINELEN=64
|
||||
CONFIG_NSH_READLINE=y
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
CONFIG_RAM_SIZE=245760
|
||||
CONFIG_RAM_START=0x20010000
|
||||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_RTC_ALARM=y
|
||||
CONFIG_RTC_DATETIME=y
|
||||
CONFIG_RTC_DRIVER=y
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_START_DAY=6
|
||||
CONFIG_START_MONTH=12
|
||||
CONFIG_START_YEAR=2011
|
||||
CONFIG_STM32H7_PWR=y
|
||||
CONFIG_STM32H7_RTC=y
|
||||
CONFIG_STM32H7_UART4=y
|
||||
CONFIG_STM32H7_USART1=y
|
||||
CONFIG_STM32H7_USART6=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_TASK_NAME_SIZE=0
|
||||
CONFIG_UART4_BAUD=38400
|
||||
CONFIG_UART4_PARITY=2
|
||||
CONFIG_UART4_RS485=y
|
||||
CONFIG_USART1_SERIAL_CONSOLE=y
|
||||
CONFIG_USART6_BAUD=38400
|
||||
CONFIG_USART6_PARITY=2
|
||||
CONFIG_USART6_RS485=y
|
Loading…
Reference in New Issue
Block a user