cleaned flake
This commit is contained in:
14
flake.nix
14
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
|
||||
echo "cargo build --release --target thumbv8m.main-none-eabihf"
|
||||
echo "sudo probe-rs run --chip STM32U575ZI target/thumbv8m.main-none-eabihf/release/main"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user