From 16e31747cc860b194719d7d276f1a0c08e417632 Mon Sep 17 00:00:00 2001 From: Barnaby Walters Date: Thu, 7 Dec 2023 00:54:39 +0100 Subject: [PATCH] Changed example project name --- docs/modules/ROOT/pages/new_project.adoc | 17 ++++++++--------- 1 file 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: [source,bash] ---- -mkdir embassy-stm32g474 -cd embassy-stm32g474 -cargo init +cargo new stm32g474-example +cd stm32g474-example ---- to create an empty rust project: [source] ---- -embassy-stm32g474 +stm32g474-example ├── Cargo.toml └── src └── main.rs @@ -31,7 +30,7 @@ Currently, we’d need to provide cargo with a target triple every time we run ` [source] ---- -embassy-stm32g474 +stm32g474-example ├── .cargo │   └── config.toml ├── Cargo.toml @@ -113,7 +112,7 @@ Before we can build our project, we need to add an additional file to tell cargo [source] ---- -embassy-stm32g474 +stm32g474-example ├── .cargo │   └── config.toml ├── Cargo.toml @@ -138,7 +137,7 @@ In order to produce a working binary for our target, cargo requires a custom bui [source] ---- -embassy-stm32g474 +stm32g474-example ├── build.rs ├── .cargo │ └── config.toml @@ -161,9 +160,9 @@ should result in a blinking LED (if there’s one attached to the pin in `src/ma [source] ---- - Compiling embassy-stm32g474 v0.1.0 (/home/you/embassy-stm32g474) + Compiling stm32g474-example v0.1.0 (/home/you/stm32g474-example) Finished release [optimized + debuginfo] target(s) in 0.22s - Running `probe-rs run --chip STM32G474RETx target/thumbv7em-none-eabi/release/embassy-stm32g474` + Running `probe-rs run --chip STM32G474RETx target/thumbv7em-none-eabi/release/stm32g474-example` Erasing sectors ✔ [00:00:00] [#########################################################] 18.00 KiB/18.00 KiB @ 54.09 KiB/s (eta 0s ) Programming pages ✔ [00:00:00] [#########################################################] 17.00 KiB/17.00 KiB @ 35.91 KiB/s (eta 0s ) Finished in 0.817s 0.000000 TRACE BDCR configured: 00008200