Add small delay to stabilize power.

This commit is contained in:
2025-10-17 12:12:46 +02:00
parent 4e2f389d21
commit a17b25dba0
3 changed files with 7 additions and 3 deletions

4
Cargo.lock generated
View File

@@ -268,9 +268,9 @@ dependencies = [
[[package]] [[package]]
name = "defmt-rtt" name = "defmt-rtt"
version = "1.0.0" version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2cac3b8a5644a9e02b75085ebad3b6deafdbdbdec04bb25086523828aa4dfd1" checksum = "93d5a25c99d89c40f5676bec8cefe0614f17f0f40e916f98e345dae941807f9e"
dependencies = [ dependencies = [
"critical-section", "critical-section",
"defmt 1.0.1", "defmt 1.0.1",

View File

@@ -15,7 +15,7 @@ embassy-usb = { version = "0.4.0", features = ["defmt"] }
embassy-futures = { version = "0.1.0"} embassy-futures = { version = "0.1.0"}
defmt = "1.0.1" defmt = "1.0.1"
defmt-rtt = "1.0.0" defmt-rtt = "1.1.0"
bitflags = "2.9.4" bitflags = "2.9.4"

View File

@@ -67,6 +67,10 @@ async fn main(spawner: Spawner) {
} }
let p = embassy_stm32::init(config); let p = embassy_stm32::init(config);
// Small delay to allow power to stabilize
Timer::after_millis(100).await;
info!("Hello World!"); info!("Hello World!");
// let mut led = Output::new(p.PA5, Level::High, Speed::Low); // let mut led = Output::new(p.PA5, Level::High, Speed::Low);