Added basic readme for flashing based on issue #67.

This commit is contained in:
Ole Odendahl 2022-10-23 18:10:08 +02:00
parent 53e52f3267
commit 100f4046fa
No known key found for this signature in database
GPG key ID: E31DACC635D3BE01

27
flashing/pyocd/README.md Normal file
View file

@ -0,0 +1,27 @@
# Flashing with pyocd
This is a different approach to flash the firmware on the b-parasites. It is completely optional.
## Basic instructions
(Based on the discussion in issue #67)
The instructions will probably differ alot depending on your debugging probe and hardware setup.
The setup is fairly straightforward and documented in the `pyocd` [docs](https://pyocd.io/).
I used an inexpensive debugging probe from Aliexpress called `nanoDAP` from `Muse Labs` which is less than 10 € and readily available. The J-LINKs are hard to get and quite expensive. In my understanding basically all `CMSIS-DAP`-compatible probes which are recognized by `pyocd` should work.
After connecting the debugging probe via usb and connecting the b-parasite as described in the wiki, flashing was easy and fast.
For a complete flashing of softdevice and firmware use the provided python script. Assuming you put the `*.hex` files in default locations it boils down to one simple command:
```
python ./flash_firmware.py
```
For help and documentation of the available command line flags use
```
python ./flash_firmware.py -h
```