cleaned flake

This commit is contained in:
Priec
2025-10-20 22:52:43 +02:00
parent deee05afb5
commit c6709f6aac

View File

@@ -34,9 +34,6 @@
]; ];
shellHook = '' shellHook = ''
echo ">>> STM32U575ZI-Q Rust (HAL + PAC) DevShell"
echo "---------------------------------------------"
# Set up Rust target # Set up Rust target
rustup target add thumbv7em-none-eabihf 2>/dev/null || true rustup target add thumbv7em-none-eabihf 2>/dev/null || true
@@ -49,17 +46,10 @@
export CARGO_TARGET_DIR=target export CARGO_TARGET_DIR=target
export PATH=$PATH:${pkgs.gcc-arm-embedded}/bin 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 rustc --version
arm-none-eabi-gcc --version | head -n1 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"
''; '';
}; };
}; };