Skip to main content
Associate
Sep 24, 2024 11:09 AM UTC
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?

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Sep 24, 2024 11:36 AM UTC

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
Sep 24, 2024 11:36 AM UTC

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
Sep 24, 2024 12:02 PM UTC

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

mƎALLEm
ST Technical Moderator
Sep 24, 2024 12:05 PM UTC

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
Nov 5, 2025 9:05 PM UTC

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