You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,46 @@ Currently the BIOS only uses a single core, and starts the OS on the same core.
35
35
Later versions may move some functionality onto the second core (e.g. screen
36
36
updates) for performance reasons.
37
37
38
+
## Programming
39
+
40
+
The Neotron BIOS uses the [defmt](https://crates.io/crates/defmt) crate to provide structured logging over the SWD interface. The easiest way to flash and debug your Neotron Pico BIOS is with a second Raspberry Pi Pico.
41
+
42
+
1. Connect your *Debugger* Pico to the *Neotron* Pico:
43
+
* connect Pin 3 on the *Debugger* Pico to GND on the *Neotron* Pico
44
+
* connect Pin 4 on the *Debugger* Pico to SWCLK on the *Neotron* Pico
45
+
* connect Pin 5 on the *Debugger* Pico to SWDIO on the *Neotron* Pico
46
+
* connect USB on the *Debugger* Pico to your PC
47
+
48
+
2. Flash your *Debugger* Pico with https://github.com/majbthrd/DapperMime firmware (e.g. by copying the UF2 file to the USB Mass Storage device)
49
+
50
+
3. On your PC, install *probe-rs-rp* from the RP2040-specific [probe-run](https://github.com/knurling-rs/probe-run) fork at https://github.com/rp-rs/probe-run.
51
+
52
+
```console
53
+
user@host ~ $ cargo install probe-rs-rp
54
+
```
55
+
56
+
4. Power on your Neotron Pico.
57
+
58
+
5. Build and load the Neotron BIOS, and view the debug output stream, with `cargo run`:
59
+
60
+
```console
61
+
user@host ~/neotron-pico-bios $ cargo run --release
0 commit comments