Modbus rtu on STM32L031G4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-27 3: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?)
- Labels:
-
Modbus
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-28 1:03 AM
Hello @Fscu.1​ ,
You will find some examples on GitHub:
- FreeMODBUS RTU port for STM32 HAL library
- Modbus-STM32-HAL-FreeRTOS
- Simple MODBUS implementation for STM32 HAL & FreeRTOS
- GitHub STMODBUS
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-29 6: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
