Skip to main content
Explorer II
September 24, 2024
Solved

Modbus Library without FreeRTOS

  • September 24, 2024
  • 2 replies
  • 5666 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?

    This topic has been closed for replies.
    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ƎALLEmAnswer
    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

     

    himaniAuthor
    Explorer II
    September 24, 2024

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

    Technical Moderator
    September 24, 2024

    Checkout the links I provided.

    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