Skip to main content
Associate
September 24, 2024
Solved

Modbus Library without FreeRTOS

  • September 24, 2024
  • 2 replies
  • 5668 views

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?

Best answer by mƎALLEm

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

 

2 replies

mƎALLEm
mƎALLEmBest answer
Technical Moderator
September 24, 2024

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 on ""Accept as Solution"" on the reply which solved your issue or answered your question."
himaniAuthor
Associate
September 24, 2024

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

mƎALLEm
Technical Moderator
September 24, 2024

Checkout the links I provided.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Visitor II
November 5, 2025

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