Getting an external low-ppm RTC clock to work on STM32 with Rust and a custom driver I've released

Hi all,

This is sort of L1Tech “adjacent” but I think it might interest some here given it’s a fusion of hardware (embedded electronics) meeting Rust, and I have a cool video to share.

So why is this cool, well to me, it’s really the Embassy “eco-system” that fully takes advantage of both async and blocking futures; this can be leveraged to create something close to an RTOS without the complexity of an actual RTOS (such as FreeRTOS or Zephyr). However, we don’t get the preempt guarantees that those RTOS offer, so be aware, I’m not proposing this as an alternative to actual RTOSes.

But the advantages are bare-metal Rust running blazingly fast on direct STM32 hardware, and also compatible with a host of MCUs such as the RP2040 (and the newer 2350), nrf52x range etc.

And here’s my driver

I’m working on a custom baseboard too, so fingers crossed.