cancel
Showing results for 
Search instead for 
Did you mean: 

How to do MODBUS communication over the UART.

AVasi.3
Associate

I m using Nucleo-f413zh controller. i want to know how we can do the modbus communication over it using UART tx and rx.plzz provide me the basic code of the modbus i m having a modbus library.plzz provide me the any example code of sending or receiving something with the board using modbus

2 REPLIES 2
AMera.1
Associate

Hi, I have ported an Arduino library using the standard Cube HAL and FreeRTOS. You can take a look in the following link

https://github.com/alejoseb/Modbus-STM32-HAL-FreeRTOS/blob/master/README.md

AGold.1
Associate II

I have written a book on Modbus slave design using C targeted to STM32: https://www.amazon.com/dp/B086PNZF4W