Skip to content

Commit f07caaf

Browse files
committed
Update flashing instructions
1 parent e9d023f commit f07caaf

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

doc/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[Hangman](./README.md)
44

55
- [Development]()
6+
- [Flashing](./flashing.md)
67
- [Hardware]()
78
- [Assembly](./assembly.md)
89
- [Bringup](./bringup.md)

doc/src/flashing.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Flashing the firmware
2+
3+
## Prereqs
4+
5+
* Obtain a Segger J-Link debugger
6+
* Download the [nRF Command Line Tools](https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools)
7+
* Download the SoftDevice s113 from <https://www.nordicsemi.com/Products/Development-software/S113>
8+
9+
## Instructions
10+
11+
1. Connect your debugger.
12+
1. Flash the SoftDevice. This generally only needs to be done once.
13+
14+
```sh
15+
nrfjprog --family nrf52 --program s113_nrf52_7.2.0_softdevice.hex --chiperase --verify --reset
16+
```
17+
18+
Your .hex filename may differ. Note that Nordic encourages the use of the nRF Util over nrfjprog.
19+
I've found nrfjprog to be more reliable. YMMV.
20+
1. Flash the hangman firmware:
21+
22+
```sh
23+
DEFMT_LOG=info cargo run --release --bin proto1_0 --features nrf52832
24+
```

hangman/flash.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
# This is a helper script to flash the nrf52 USB stick developer module
1617

1718
TMPFILE=$(mktemp /tmp/hangman.XXXXXX.zip)
1819

0 commit comments

Comments
 (0)