Northeastern-Electric-Racing / Northeastern-Electric-Racing/Embedded-Base
Develop HAL RTC interaction and callback layer for PTP
@ninjadrknss is already working on this.
Since Feb 10, 2026.
- Dominant language
- C
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Description
Right now we use the UDP userspace PTP from ThreadX NetX.
See https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/netx-duo-ptp-client/chapter1.md.
We use the soft client timer callback. Thats bad.
Acceptance Criteria
Uses STM32 H5 RTC object in order to implement the hard clock callback. Support sub microsecond precision.
Proposed Solution
Edit the PTP client in our ethernet file (do not edit copied NetX source) to use the callback of the RTC. Whether the callback should be in Embedded base or the parent is up to you. Just note if you do it here:
- You must somehow take in a RTC. Can be H5 specific for now.
- You must ensure the RTC timer tick is accurate.
Make sure to read about the finer points of sub second accuracy in the STM docs and forums.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.