https://github.com/mendelt/bluepill-template
Cargo generate template for Rust embedded projects based on the stm32f103 blue pill board.
https://github.com/mendelt/bluepill-template
cargo-generate no-std rust
Last synced: 9 months ago
JSON representation
Cargo generate template for Rust embedded projects based on the stm32f103 blue pill board.
- Host: GitHub
- URL: https://github.com/mendelt/bluepill-template
- Owner: mendelt
- Created: 2019-01-17T07:55:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-25T12:11:56.000Z (almost 6 years ago)
- Last Synced: 2025-04-03T03:32:55.661Z (about 1 year ago)
- Topics: cargo-generate, no-std, rust
- Language: Rust
- Size: 9.77 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bluepill-template
Cargo generate template for Rust embedded projects based on the stm32f103 blue pill board.
## Usage
Install cargo-generate if you don't already have it;
```cargo install cargo-generate```
Generate your project;
```cargo generate --git https://github.com/mendelt/bluepill-template```
Configure your project debugger
Edit .cargo/config, set runner to the executable you use as your debugger.
for example:
```runner = "arm-none-eabi-gdb -q -x debug.gdb"```
or
```runner = "gdb-multiarch -q -x debug.gdb"```
Start openocd in a separate terminal window by running `openocd` from the root or your project.
This will make sure it picks up the openocd.cfg file.
Start the project:
```cargo run```