百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

STM32_HAL_FREEMODBUS_RTU

> 编程语言
开源

适用于STM32 HAL库的 FreeMODBUS RTU 端口

192 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

适用于STM32 HAL库的 FreeMODBUS RTU 端口

STM32_HAL_FREEMODBUS_RTU

FreeMODBUS RTU port for STM32 HAL library

http://blog.naver.com/eziya76/220970378890

Recent Updates (Bare-metal Optimization & Bug Fixes)

  • Bare-metal Architecture: Completely removed FreeRTOS dependencies and threads. The application now runs on a highly efficient while(1) polling loop.
  • Timing Accuracy: Fixed a critical TIM7 prescaler calculation bug (APB1 clock x2) and added a counter reset upon start to ensure precise T3.5 timeout detection.
  • Robust UART Error Handling: Prevented infinite interrupt lockups caused by UART Overrun (ORE) or Framing Errors by directly clearing the SR/DR registers.
  • Lightweight Event Queue: Replaced the previous ring buffer with an ultra-lightweight 4-depth fixed queue to minimize interrupt disable time and prevent event loss.
  • Hardware Integration: Dynamically applied the ulBaudRate and eParity parameters to the UART HAL initialization.
  • C++ Compatibility: Restored missing extern "C" macros in the port headers.

Note on Modbus Addressing (Off-by-one): The FreeModbus stack passes a 1-based address to callbacks. Since the example validates usAddress starting from 1000, the master device must request PDU address 999 (0x03E7) to read this register.

Reference

  • https://habrahabr.ru/post/279747/
  • http://ctrl-v.biz/blog/6
  • http://factory.ergoinventus.net/2016/05/stm32-hal-uart-isq-handler.html

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cfreemodbushalmodbusrtu

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言