cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus rtu on STM32L031G4

Fscu.1
Associate II

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?)

2 REPLIES 2
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Fscu.1
Associate II

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