alejoseb / Modbus-STM32-HAL-FreeRTOS

Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
GNU Lesser General Public License v2.1
519 stars 182 forks source link

Use TCP slave without UART #66

Closed alejandroalis closed 1 year ago

alejandroalis commented 1 year ago

Sorry this is a question, not an issue, but don't know where to ask...

One question, I'm trying to use the H743TCP example on a H735 device but only want to use the TCP protocol and It seems that the USART is always enabled, it's possible to use the library without any uart?

Thanks!

alejoseb commented 1 year ago

I think the library requires some headers and references to USART even when not used. Solving that might require some cleaning of the library. Meanwhile you can add a serial port to your project and simply don't use it.

alejandroalis commented 1 year ago

yes, working without uart because I don't setup it and TCP is working.. I'm trying to understand how the library works because I never used modbus and very confused about the registers (coils, inputs..)