2021-04-27 03:07 AM
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?)
2021-04-28 01:03 AM
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.
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
2021-04-29 06:45 AM
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