Skip to main content
Associate
Solved

Modbus Library without FreeRTOS

Hi,
I am working with an STM32 microcontroller (STM32 C0 & STM32H5 series) and want to implement Modbus communication without using FreeRTOS . Most examples I found are based on FreeRTOS, but I need to handle Modbus protocol in a non-RTOS environment.
Are there any recommended Modbus libraries that can work without an RTOS?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator

Hello @himani ,

You need also to specify which Modbus flavor? RTU? TCP/IP?

Knowing that STM32C0 has no ETH interface.

See for example these links for Modbus RTU:  https://github.com/urands/stModbus

https://github.com/cwalter-at/freemodbus

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

5 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator

Hello @himani ,

You need also to specify which Modbus flavor? RTU? TCP/IP?

Knowing that STM32C0 has no ETH interface.

See for example these links for Modbus RTU:  https://github.com/urands/stModbus

https://github.com/cwalter-at/freemodbus

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
himaniAuthor
Associate

Hi,
Yes you are right, I need ModbusSlave library for RTU without FreeRTOS .

mƎALLEm
ST Technical Moderator

Checkout the links I provided.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Visitor II

Here is a powerful transport agnostic library that is easy to set up https://github.com/SiemensEnergy/c-modbus-slave