embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.64k stars 781 forks source link

low-power: add support for stm32u0 #3556

Closed chrenderle closed 1 day ago

chrenderle commented 5 days ago

Adding low-power support for the stm32u0. This PR depends on embassy-rs/stm32-data#540.

I can measure ~9uA for a blinky with 0.5Hz LED frequency. During stop the power consumption is ~2uA when the LED is off. The measurements are on my Nucleo-U083RC. low-power-stop2-u0 low-power-stop2-u0-2

chrenderle commented 5 days ago

Now all errors should be fixed apart from those depending on the PR.

Dirbaio commented 5 days ago

is the ci failure is due to stm32-metapac needing updating? you can do it by changing the commit hash in Cargo.toml (in two places)

chrenderle commented 5 days ago

is the ci failure is due to stm32-metapac needing updating? you can do it by changing the commit hash in Cargo.toml (in two places)

yes, the errors are because of the stm32-metapac update. I will change the hashes

chrenderle commented 5 days ago

@Dirbaio do I just take the latest hash or the one with the changes I need?

Dirbaio commented 5 days ago

ideally latest!

chrenderle commented 4 days ago

I removed a commit since someone else did the change already but in a way that was unable to merge automatically. Now the build-xtensa is failing because of some timeout.

chrenderle commented 1 day ago

The pr should be ready to merge