Add flashing instructions and IDE integration for Pico W

This commit is contained in:
2026-06-04 14:14:43 -05:00
parent 5019a9add7
commit 688e5b404b
3 changed files with 44 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
[target.thumbv6m-none-eabi]
runner = "probe-rs run --chip RP2040"
[build]
target = "thumbv6m-none-eabi"
[unstable]
build-std = ["core", "alloc"]
+15
View File
@@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Flash Pico W" type="CargoCommandRunConfiguration" factoryName="Cargo Command">
<option name="command" value="run --release" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<option name="emulateTerminal" value="true" />
<option name="channel" value="DEFAULT" />
<option name="requiredFeatures" value="true" />
<option name="allFeatures" value="false" />
<option name="withSudo" value="false" />
<option name="buildTarget" value="REMOTE" />
<option name="backtrace" value="SHORT" />
<envs />
<method v="2" />
</configuration>
</component>
+21
View File
@@ -88,6 +88,27 @@ flatpak run org.example.rustdevshell
| **flip-link** | Stack overflow protection for embedded |
| **tea** | Gitea CLI for repository management |
## Flashing & IDE Integration
This project is configured for seamless flashing from the IDE or terminal.
### Flashing from IDE
If you are using **RustRover** or **IntelliJ Rust**, you can use the "Flash Pico W" run configuration provided in the `.run` folder. Just select it from the run menu and click "Run".
### Flashing from Terminal
You can flash the Pico W by running:
```bash
cargo run --release
```
This uses `probe-rs` (configured in `.cargo/config.toml`) to flash and run the binary via a CMSIS-DAP debugger or similar.
If you prefer to use the UF2 bootloader (dragging to the drive or using `elf2uf2-rs`), you can change the runner in `.cargo/config.toml` to:
`runner = "elf2uf2-rs -d"`
## Testing & Development Features
Build and testing tools: