Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
[Hangman](./README.md)

- [Development]()
- [Flashing](./flashing.md)
- [Hardware]()
- [Calibration](./calibration.md)
24 changes: 24 additions & 0 deletions doc/src/flashing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Flashing the firmware

## Prereqs

* Obtain a Segger J-Link debugger
* Download the [nRF Command Line Tools](https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools)
* Download the SoftDevice s113 from <https://www.nordicsemi.com/Products/Development-software/S113>

## Instructions

1. Connect your debugger.
1. Flash the SoftDevice. This generally only needs to be done once.

```sh
nrfjprog --family nrf52 --program s113_nrf52_7.2.0_softdevice.hex --chiperase --verify --reset
```

Your .hex filename may differ. Note that Nordic encourages the use of the nRF Util over nrfjprog.
I've found nrfjprog to be more reliable. YMMV.
1. Flash the hangman firmware:

```sh
DEFMT_LOG=info cargo run --release --bin proto1_0 --features nrf52832
```
1 change: 1 addition & 0 deletions hangman/flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

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

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

Expand Down