diff options
| author | Barnaby Walters <[email protected]> | 2023-12-07 00:54:39 +0100 |
|---|---|---|
| committer | Barnaby Walters <[email protected]> | 2023-12-07 00:54:39 +0100 |
| commit | 16e31747cc860b194719d7d276f1a0c08e417632 (patch) | |
| tree | 7510ea6c297222eba2e20574b689dcbfa9860a19 /docs/modules | |
| parent | 536e91d263ecfcf684f91598e5ca987ae0acc820 (diff) | |
Changed example project name
Diffstat (limited to 'docs/modules')
| -rw-r--r-- | docs/modules/ROOT/pages/new_project.adoc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/docs/modules/ROOT/pages/new_project.adoc b/docs/modules/ROOT/pages/new_project.adoc index ae819aa83..ce139ed8d 100644 --- a/docs/modules/ROOT/pages/new_project.adoc +++ b/docs/modules/ROOT/pages/new_project.adoc | |||
| @@ -8,16 +8,15 @@ Run: | |||
| 8 | 8 | ||
| 9 | [source,bash] | 9 | [source,bash] |
| 10 | ---- | 10 | ---- |
| 11 | mkdir embassy-stm32g474 | 11 | cargo new stm32g474-example |
| 12 | cd embassy-stm32g474 | 12 | cd stm32g474-example |
| 13 | cargo init | ||
| 14 | ---- | 13 | ---- |
| 15 | 14 | ||
| 16 | to create an empty rust project: | 15 | to create an empty rust project: |
| 17 | 16 | ||
| 18 | [source] | 17 | [source] |
| 19 | ---- | 18 | ---- |
| 20 | embassy-stm32g474 | 19 | stm32g474-example |
| 21 | ├── Cargo.toml | 20 | ├── Cargo.toml |
| 22 | └── src | 21 | └── src |
| 23 | └── main.rs | 22 | └── main.rs |
| @@ -31,7 +30,7 @@ Currently, we’d need to provide cargo with a target triple every time we run ` | |||
| 31 | 30 | ||
| 32 | [source] | 31 | [source] |
| 33 | ---- | 32 | ---- |
| 34 | embassy-stm32g474 | 33 | stm32g474-example |
| 35 | ├── .cargo | 34 | ├── .cargo |
| 36 | │ └── config.toml | 35 | │ └── config.toml |
| 37 | ├── Cargo.toml | 36 | ├── Cargo.toml |
| @@ -113,7 +112,7 @@ Before we can build our project, we need to add an additional file to tell cargo | |||
| 113 | 112 | ||
| 114 | [source] | 113 | [source] |
| 115 | ---- | 114 | ---- |
| 116 | embassy-stm32g474 | 115 | stm32g474-example |
| 117 | ├── .cargo | 116 | ├── .cargo |
| 118 | │ └── config.toml | 117 | │ └── config.toml |
| 119 | ├── Cargo.toml | 118 | ├── Cargo.toml |
| @@ -138,7 +137,7 @@ In order to produce a working binary for our target, cargo requires a custom bui | |||
| 138 | 137 | ||
| 139 | [source] | 138 | [source] |
| 140 | ---- | 139 | ---- |
| 141 | embassy-stm32g474 | 140 | stm32g474-example |
| 142 | ├── build.rs | 141 | ├── build.rs |
| 143 | ├── .cargo | 142 | ├── .cargo |
| 144 | │ └── config.toml | 143 | │ └── config.toml |
| @@ -161,9 +160,9 @@ should result in a blinking LED (if there’s one attached to the pin in `src/ma | |||
| 161 | 160 | ||
| 162 | [source] | 161 | [source] |
| 163 | ---- | 162 | ---- |
| 164 | Compiling embassy-stm32g474 v0.1.0 (/home/you/embassy-stm32g474) | 163 | Compiling stm32g474-example v0.1.0 (/home/you/stm32g474-example) |
| 165 | Finished release [optimized + debuginfo] target(s) in 0.22s | 164 | Finished release [optimized + debuginfo] target(s) in 0.22s |
| 166 | Running `probe-rs run --chip STM32G474RETx target/thumbv7em-none-eabi/release/embassy-stm32g474` | 165 | Running `probe-rs run --chip STM32G474RETx target/thumbv7em-none-eabi/release/stm32g474-example` |
| 167 | Erasing sectors ✔ [00:00:00] [#########################################################] 18.00 KiB/18.00 KiB @ 54.09 KiB/s (eta 0s ) | 166 | Erasing sectors ✔ [00:00:00] [#########################################################] 18.00 KiB/18.00 KiB @ 54.09 KiB/s (eta 0s ) |
| 168 | Programming pages ✔ [00:00:00] [#########################################################] 17.00 KiB/17.00 KiB @ 35.91 KiB/s (eta 0s ) Finished in 0.817s | 167 | Programming pages ✔ [00:00:00] [#########################################################] 17.00 KiB/17.00 KiB @ 35.91 KiB/s (eta 0s ) Finished in 0.817s |
| 169 | 0.000000 TRACE BDCR configured: 00008200 | 168 | 0.000000 TRACE BDCR configured: 00008200 |
