This template includes all files and configs necessary to print "Hello, Rust" every second over terminal (probe-rs).
cargo install flip-linkInstall probe-rs by following the instructions at https://probe.rs/docs/getting-started/installation/ or installing the vs-code extension.
3. cargo-generate:
cargo install cargo-generateNote: You can also just click on
Use this templateinstead of usingcargo-generate.
cargo generate \
--git https://github.com/1Dodge/stm32h753ZI-template \
--branch main \
--name my-appcargo generate ^
--git https://github.com/1Dodge/stm32h753ZI-template ^
--branch main ^
--name my-appcargo generate `
--git https://github.com/1Dodge/stm32h753ZI-template `
--branch main `
--name my-appNote: change
my-appto your project name.
There now should be a new folder my-app with the template files in it.
In cargo.toml you need to set the authors and the name to your project name.
authors = ["Your Name <optional@example.com>"]
name = "stm32h753ZI-template"my-app needs to be changed to your project name. Otherwise vscode debugger wont run and fails.
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/my-app",cargo runThe programm should flash and probe-rs debug output should be running. You should see Hello, Rust be printed every second.