working hal_test

This commit is contained in:
Priec
2025-10-20 22:37:21 +02:00
parent da01c4593e
commit deee05afb5
13 changed files with 721 additions and 425 deletions

View File

@@ -1,43 +1,57 @@
[package]
# TODO(1) fix `authors` and `name` if you didn't use `cargo-generate`
authors = ["Priec <filippriec@gmail.com>"]
name = "stm32u5-blinky"
edition = "2024"
name = "embassy-stm32u575zi-examples"
version = "0.1.0"
license = "MIT OR Apache-2.0"
publish = false
authors = ["Priec <filippriec@gmail.com>"]
[dependencies]
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7"
defmt = "1.0"
defmt-rtt = "1.0"
# Embassy core crates from crates.io (no relative paths)
embassy-stm32 = { version = "0.4.0", features = [
"defmt",
"stm32u575zi",
"time-driver-any",
] }
embassy-sync = { version = "0.7.2", features = ["defmt"] }
embassy-executor = { version = "0.9.1", features = [
"arch-cortex-m",
"executor-thread",
"defmt",
] }
embassy-time = { version = "0.5.0", features = [
"defmt",
"defmt-timestamp-uptime",
"tick-hz-32_768",
] }
embassy-usb = { version = "0.5.1", features = ["defmt"] }
embassy-futures = { version = "0.1.2" }
# Logging and panic behavior
defmt = "1.0.1"
defmt-rtt = "1.0.0"
panic-probe = { version = "1.0", features = ["print-defmt"] }
embassy-stm32 = { version = "0.4.0", features = ["stm32u575zi", "time-driver-tim1", "defmt", "low-power", "memory-x"] }
embassy-time = "0.5.0"
semihosting = "0.1.20"
# MCU + HAL utilities
cortex-m = { version = "0.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7"
embedded-hal = "1.0.0"
embassy-executor = { version = "0.9.1", features = ["arch-cortex-m", "executor-thread"] }
heapless = { version = "0.8", default-features = false }
embedded-graphics = "0.8.1"
tinybmp = "0.6.0"
micromath = "2.0.0"
[dev-dependencies]
defmt-test = "0.3"
[features]
## Allow building secure binaries if TrustZone is enabled
trustzone-secure = ["embassy-stm32/trustzone-secure"]
# cargo build/run
[profile.dev]
# default is opt-level = '0', but that makes very
# verbose machine code
opt-level = 's'
# trade compile speed for slightly better optimisations
codegen-units = 1
# cargo build/run --release
[profile.release]
# default is opt-level = '3', but that makes quite
# verbose machine code
opt-level = 's'
# trade compile speed for slightly better optimisations
codegen-units = 1
# Use Link Time Optimisations to further inline things across
# crates
lto = 'fat'
# Leave the debug symbols in (default is no debug info)
lto = "fat"
opt-level = "s"
debug = 2
codegen-units = 1
[package.metadata.embassy]
build = [
{ target = "thumbv8m.main-none-eabihf", artifact-dir = "out/examples/stm32u5" }
]