Skip to content

Commit

Permalink
Merge pull request #12 from xiongyihui/master
Browse files Browse the repository at this point in the history
add missing steps
  • Loading branch information
caizelin authored Aug 22, 2019
2 parents 0b7d8ad + 1c62585 commit 84047f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/building/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,24 @@ For more security, remember to generate a new attestation key and certificate.
Change to the `tools` directory, run the `generate-certs.sh` to generate a new attestation key and certificate:

``` sh
$ cp ./certs/myserver.cnf.example ./certs/myserver.cnf

$ cd ./nrf52-u2f/tools

$ ./generate-certs.sh
```

If successfully completed, the private key and certificate are stored in `certs/keys.c` file.

## Get micro-ecc library

```sh
cd nrf_sdks/nRF5_SDK_15.2.0_9412b96/external/micro-ecc
git clone https://github.com/kmackay/micro-ecc.git
cd nrf52hf_armgcc/armgcc
make
```

## Build the U2F Firmware

Now you are ready to build nRF52-U2F source code.
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Run the following command to upgrade the U2F firmware, where:
* `<serial-port>` is the serial port address to which the device is connected. (e.g. `COM1` in windows systems, `/dev/ttyACM0` in linux/mac).

``` sh
nrfutil dfu usb_serial -pkg <package-path> -p <serial-port>
nrfutil dfu usb-serial -pkg <package-path> -p <serial-port>
```

![](images/upgrading-app-with-nrfutil.png)
Expand Down

0 comments on commit 84047f1

Please sign in to comment.