diff --git a/flake.nix b/flake.nix index 2183f5c..1043396 100644 --- a/flake.nix +++ b/flake.nix @@ -34,9 +34,6 @@ ]; shellHook = '' - echo ">>> STM32U575ZI-Q Rust (HAL + PAC) DevShell" - echo "---------------------------------------------" - # Set up Rust target rustup target add thumbv7em-none-eabihf 2>/dev/null || true @@ -49,17 +46,10 @@ export CARGO_TARGET_DIR=target export PATH=$PATH:${pkgs.gcc-arm-embedded}/bin - echo "🧩 Target: $RUST_TARGET" - echo "💡 Examples:" - echo " 1️⃣ cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart --name stm32u5-blinky" - echo " 2️⃣ cd stm32u5-blinky && cargo build --release --target thumbv7em-none-eabihf" - echo " 3️⃣ probe-rs run --chip STM32U575ZITxQ target/thumbv7em-none-eabihf/release/stm32u5-blinky" - echo "" - echo "🧠 TIP: Add stm32u5xx-hal to Cargo.toml to access register-level HAL API." - echo "---------------------------------------------" - - rustc --version - arm-none-eabi-gcc --version | head -n1 + rustc --version + arm-none-eabi-gcc --version | head -n1 + echo "cargo build --release --target thumbv8m.main-none-eabihf" + echo "sudo probe-rs run --chip STM32U575ZI target/thumbv8m.main-none-eabihf/release/main" ''; }; };