The migration from ChibiOS 20.3.x to the latest stable 21.11.x branch has been completed internally for the gateway. This upgrade adopts RT kernel version 7, with custom backports for Ethernet and RS485 functionality, plus adaptations to the new UART API for modem operations. A successful build is now available for testing.
Key Migration Steps
- Updated core OHS components to kernel 7 compatibility, addressing API changes in HAL 8.0.0 including SPIv2 drivers and improved STM32 support.
- Backported custom Ethernet and RS485 drivers, leveraging UART driver callbacks for transmission end events essential in half-duplex RS485 setups.
- Modified modem UART integration to align with the new driver model, ensuring reliable communication in IoT gateway scenarios.
Resources and Downloads
- Forked ChibiOS repository: https://github.com/vysocan/ChibiOS_21.11.x.git – contains the adapted 21.11.x branch for OHS.
- Test release with binaries: https://github.com/vysocan/OHS_2-gateway/releases/tag/test_ChibiOS_21_11 – ready for download and deployment on STM32F4x7 hardware.
Potential Hiccups and Tips
Fell free to test the new binary and report any bugs through the discord @ #gw-latest
No comments:
Post a Comment