I got my Daisy Seed earlier this week (Tx Michael!) and put together a simple starter project for using the Daisy Seed with the Rust programming language:
Currently it just implements a basic “blinky” which flashes the Seed’s user led.
A good place to go digging for more example code is the examples directory in the stm32h7xx-hal crate.
The instructions for use go something like this:
Install arm target for Daisy
rustup target add thumbv7em-none-eabihf
# install via macports (TODO homebrew, linux, windows) sudo port install arm-none-eabi-gdb
Install from source or get it from: https://xpack.github.io/openocd/install/
cargo install cargo-generate cargo generate \ --git https://github.com/antoinevg/hello-daisy \ --name your-project-name
Flash and run
Plug a 2x10 mini adapter into the Daisy Seed with the red stripe facing up towards the white stripe.
Connect the other end to a ST-Link or similiar programmer.
Start openocd in one terminal:
cd /path/to/your-project-name /path/to/openocd
Run program in another terminal:
cd /path/to/your-project-name cargo build # some programmers may need you to hit the reset button on the Daisy Seed at this point cargo run