Skip to content

Commit a690cb3

Browse files
committed
cargo generate
1 parent f4aea76 commit a690cb3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
- complete and rework Dma Stream API [#666]
1111
- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
12+
- add "Fast start" section in README [#678]
1213

1314
[#666]: https://github.com/stm32-rs/stm32f4xx-hal/pull/666
1415
[#677]: https://github.com/stm32-rs/stm32f4xx-hal/pull/677
16+
[#678]: https://github.com/stm32-rs/stm32f4xx-hal/pull/678
1517

1618
## [v0.17.1] - 2023-07-24
1719

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ crate originally started by Jorge Aparicio.
6969
[stm32f1xx-hal]: https://github.com/stm32-rs/stm32f1xx-hal
7070
[embedded-hal]: https://github.com/rust-embedded/embedded-hal
7171

72-
Setting up your project
73-
-------
72+
## Setting up your project
7473

7574
Check if the BSP for your board exists in the
7675
[stm32-rs](https://github.com/stm32-rs) page.
7776
If it exists, the `stm32f4xx-hal` crate should be already included, so you can
7877
use the bsp as BSP for your project.
7978

79+
### Manually
80+
8081
Otherwise, create a new Rust project as you usually do with `cargo init`. The
8182
"hello world" of embedded development is usually to blink a LED. The code to do
8283
so is available in [examples/delay-syst-blinky.rs](examples/delay-syst-blinky.rs).
@@ -103,6 +104,14 @@ We also need to tell Rust how to link our executable and how to lay out the
103104
result in memory. To accomplish all this, copy [.cargo/config](.cargo/config.toml)
104105
and [memory.x](memory.x) from the `stm32f4xx-hal` repository to your project and make sure the sizes match up with the datasheet. Also note that there might be different kinds of memory which are not equal; to be on the safe side only specify the size of the first block at the specified address.
105106

107+
### Fast start
108+
109+
To create empty project faster you could use `cargo generate` command. See [stm32-template](https://github.com/burrbull/stm32-template/).
110+
```
111+
$ cargo generate --git https://github.com/burrbull/stm32-template/
112+
```
113+
Note that you need to know your chip full name.
114+
106115
License
107116
-------
108117

0 commit comments

Comments
 (0)