From 920d2cc72f9027f2bf90870f28d246676cece963 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Fri, 16 May 2025 09:43:05 +0100 Subject: [PATCH] doc: Document the project creation process (#99) * doc: Document the project creation process * fix: typo in readme.md introduced in the previous commit Co-authored-by: 9names <60134748+9names@users.noreply.github.com> --------- Co-authored-by: 9names <60134748+9names@users.noreply.github.com> --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db972f0..bd14a23 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ If you aren't using a debugger (or want to use other debugging configurations),
  1. Requirements
  2. Installation of development dependencies
  3. +
  4. Project Creation
  5. Running
  6. Alternative runners
  7. Notes on using rp2040_boot2
  8. @@ -41,7 +42,6 @@ If you aren't using a debugger (or want to use other debugging configurations), - flip-link - this allows you to detect stack-overflows on the first core, which is the only supported target for now. - (by default) A [`probe-rs` installation](https://probe.rs/docs/getting-started/installation) - - A [`probe-rs` compatible](https://probe.rs/docs/getting-started/probe-setup) probe You can use a second @@ -67,6 +67,31 @@ If you get the error ``binary `cargo-embed` already exists`` during installation + +
    +

    Creating your project

    + +### Using `cargo-generate` + +```sh +cargo generate --git https://github.com/rp-rs/rp2040-project-template +``` + +Follow the wizard 🪄 and enjoy your new project. + +### Downloading as a zip file or using GitHub's template support + +Obtain a copy of the code, either by downloading this repository as a zip file or using GitHub's +template feature, then apply the following: +- Remove `debug_probes.md`. +- Remove the `cargo-generate` directory. +- Remove/edit `README.md`. +- If using vscode update `.vscode/launch.json`; + Else: remove this file. +- Edit `Cargo.toml` & adjust according to your project (especially its name). +- Edit `.cargo/config.toml` to select your favorite runner. + +