Cargo workspace for the "Debugging Embedded Rust" article series. Target:
NUCLEO-F446RE (STM32F446RE, Cortex-M4F), thumbv7em-none-eabihf.
cargo build --workspace # dev profile, all three projects
cargo build --workspace --releaseProject 1 has two variants of the same source (see its Cargo.toml):
cargo build -p project1-baseline-counter keeps #[inline(never)] on
update_counter; cargo build -p project1-baseline-counter --release --no-default-features removes it.
cargo run -p project1-baseline-counter # flash + run + RTT, via the
# runner in .cargo/config.tomlopenocd -f openocd.cfg # leave running in a terminal
gdb-multiarch -x .gdbinit target/thumbv7em-none-eabihf/debug/project1-baseline-counter