Skip to main content
Fscu.1
Associate
April 27, 2021
Question

Modbus rtu on STM32L031G4

  • April 27, 2021
  • 2 replies
  • 4711 views

I want to implement the modbus rtu on the micro STM32L031G4 which library do you recommend?

(if you use freeROTS how should I configure the micro da cube ide?)

This topic has been closed for replies.

2 replies

ST Technical Moderator
April 28, 2021

Hello @Fscu.1​ ,

You will find some examples on GitHub:

You can refer to Reference Manual RM0377 - "24.5.8 Modbus communication using USART". It highlight that the control part of the protocol (address recognition, block integrity control and command interpretation) must be implemented in software.

0693W00000AMjP5QAL.jpg Maybe this discussion can help you to use Modbus RTU.

Hope my answer helped you!

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Fscu.1
Fscu.1Author
Associate
April 29, 2021

Do you have some code in c to implement the interrupt when the serial does not receive for more than 2 characters? (i so cube ide and the micro and the STM32L031G4

Tanks