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
DEFMT_LOG=info cargo run --release --bin proto1_0 --features nrf52832
31
+
```
32
+
33
+
## Windows + ST-Link
34
+
35
+
Instructions using Windows, WSL and a ST-Link
36
+
37
+
### Requirements
4
38
5
-
## Requirements on Windows ##
6
39
- Working WSL2
7
40
- ST-Link, with installed drivers (I used a ST-Link V2-1, borrowed from a Nucleo Board)
8
41
- Install usbipd-win on windows: run `winget install --interactive --exact dorssel.usbipd-win` in a windows terminal
@@ -13,7 +46,8 @@ How to get the board from being assembled to being functional, using Windows, WS
13
46
- Download the SoftDevice for the chip from NRF (I used s113_nrf52_7.3.0_softdevice.hex)
14
47
15
48
16
-
## Flashing on Windows ##
49
+
### Flashing
50
+
17
51
- Connect the ST-Link
18
52
- Follow these instructions to get the ST-Link connected to WSL: https://learn.microsoft.com/de-de/windows/wsl/connect-usb
19
53
-`usbipd list`
@@ -30,10 +64,12 @@ How to get the board from being assembled to being functional, using Windows, WS
30
64
- Build and flash the code with `cargo run --bin proto1_0 --release`
31
65
- Done! Further flashing etc. should not require reflashing the SoftDevice
32
66
33
-
### Notes:
67
+
### Notes
68
+
34
69
- If you just want to flash the softdevice in one command you can do it like this: `openocd -f /usr/share/openocd/scripts/interface/stlink.cfg -f /usr/share/openocd/scripts/target/nrf52.cfg -c "init; halt; nrf5 mass_erase; program /full/path/.../s113_nrf52_7.3.0_softdevice.hex preverify verify; shutdown"`
0 commit comments