-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
176,410 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# DFU Tests | ||
|
||
This folder contains files used for DFU Library testing using Automated Tests module in nRF Connect for Android. | ||
|
||
### Requirements | ||
|
||
1. nRF Connect 4.11 (older versions in general will also work, but some issues may occure. The 4.11 is using DFU Lib 1.3.0). | ||
2. Optional: nRF Logger - shows log progress. | ||
3. A phone connected to a PC running Windows with ADB (Android Debug Bridge) in PATH. | ||
|
||
### How to start | ||
|
||
1. Connect your Android phone using USB to the PC (currently only BAT scripts are provided so Windows is required). | ||
2. Make sure nRF Conect 4.11 and nRF Logger (optionally) are installed from Google Play or GitHub using APK. | ||
3. Flash your DK (Development Kit) using the proper HEX from *output* folder from the highest SDK. | ||
4. Start test using run_test.bat. Make sure that nRF Connect is closed before (quit with BACK button), as it may intercept the connection if running in foreground. | ||
5. A notification will be shown on the phone. Tap it to open nRF Logger and see progress. | ||
6. When done test result will be pulled to the PC. You may find success results in devices' folders. | ||
|
||
### Private key | ||
|
||
The private and public key provided here were created to generate the bootloader.hex for SDKs 12.2+. | ||
Please, don't be that excited that's is a private key on GitHub. Don't use it for any other purpose than this as it is no that private anymore :) | ||
|
||
Public key generated using: | ||
|
||
```nrfutil keys display --key pk --format code private.pem > dfu_public_key.c``` | ||
|
||
See https://github.com/NordicSemiconductor/pc-nrfutil/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
/* This file was automatically generated by nrfutil on 2017-03-28 (YY-MM-DD) at 12:54:53 */ | ||
|
||
#include "stdint.h" | ||
#include "compiler_abstraction.h" | ||
|
||
/** @brief Public key used to verify DFU images */ | ||
__ALIGN(4) const uint8_t pk[64] = | ||
{ | ||
0x3b, 0xbd, 0xe1, 0x0e, 0x31, 0xc9, 0xb7, 0x53, 0x9c, 0xcf, 0xfe, 0x61, 0x69, 0x46, 0x68, 0xe5, 0xe0, 0x05, 0xfb, 0x99, 0xec, 0x40, 0x02, 0x66, 0x36, 0x1d, 0xd3, 0x58, 0x49, 0xdb, 0xc8, 0x2c, | ||
0x2c, 0x97, 0x73, 0x05, 0x04, 0xb9, 0x12, 0x1c, 0x98, 0x26, 0x00, 0x4c, 0x7e, 0x98, 0xa4, 0xc1, 0x8d, 0x05, 0x22, 0xc9, 0x3d, 0x8f, 0xf5, 0xca, 0x9c, 0x0c, 0x92, 0xe0, 0x00, 0x23, 0x38, 0x34 | ||
}; | ||
|
2,632 changes: 2,632 additions & 0 deletions
2,632
documentation/Automated tests/DFU Tests/nRF51/Log 2017-04-06 162016.txt
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.