Add flashing instructions and IDE integration for Pico W
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
[target.thumbv6m-none-eabi]
|
||||||
|
runner = "probe-rs run --chip RP2040"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
target = "thumbv6m-none-eabi"
|
||||||
|
|
||||||
|
[unstable]
|
||||||
|
build-std = ["core", "alloc"]
|
||||||
@@ -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>
|
||||||
@@ -88,6 +88,27 @@ flatpak run org.example.rustdevshell
|
|||||||
| **flip-link** | Stack overflow protection for embedded |
|
| **flip-link** | Stack overflow protection for embedded |
|
||||||
| **tea** | Gitea CLI for repository management |
|
| **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
|
## Testing & Development Features
|
||||||
|
|
||||||
Build and testing tools:
|
Build and testing tools:
|
||||||
|
|||||||
Reference in New Issue
Block a user