forked from espruino/Espruino
-
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
1 parent
a7a2fa9
commit f177235
Showing
1 changed file
with
59 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,59 @@ | ||
Using Nordic Bootloader | ||
======================== | ||
|
||
Building complete hex file for Nordic DK upload | ||
------------------------------------------------ | ||
|
||
Build the Bootloader: | ||
|
||
``` | ||
make clean;PUCKJS=1 RELEASE=1 BOOTLOADER=1 make | ||
``` | ||
|
||
Now build everything: | ||
|
||
``` | ||
make clean;PUCKJS=1 RELEASE=1 make | ||
``` | ||
|
||
Connect SWD connections and use: | ||
|
||
``` | ||
PUCKJS=1 RELEASE=1 make flash | ||
``` | ||
|
||
(Or just copy the zip file to the NRF52DK's flash drive) | ||
|
||
Building zip file for Over the Air upload | ||
----------------------------------------- | ||
|
||
### Prep | ||
|
||
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Flib_crypto.html&anchor=lib_crypto_key | ||
|
||
``` | ||
sudo apt install python-pip | ||
pip install --upgrade pip | ||
sudo pip install setuptools | ||
sudo pip install nrfutil | ||
``` | ||
|
||
### Compilation | ||
|
||
``` | ||
make clean;PUCKJS=1 RELEASE=1 DFU_UPDATE_BUILD=1 make | ||
``` | ||
|
||
# Flashing | ||
|
||
* Download the `nRF Toolbox` app to your phone | ||
* Download the ZIP file to a local folder on your phone | ||
* Run the app and tap 'DFU' | ||
* Select the file (Distribution Packet) | ||
* Now take the battery out of the puck and re-insert it with the button hold down | ||
* The Green LED should be lit - now release the button (under 3 secs after inserting battery) | ||
* The Red LED should now be lit | ||
* Tap 'select device' in the app, and choose `DfuTarg` | ||
* Now tap `Upload` | ||
|
||
Upload Failed: UNKNOWN (8202) |