diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-26 18:18:17 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-26 18:18:17 (GMT) |
| commit | 17a8cfc34638d14167d33c1f2b094813446e5c5b (patch) | |
| tree | 877ced3a16dbc2be70173dd048a9a2ec7954d2e9 /README.md | |
| parent | 5ce0d4cd6fdc71d8db83f3e8869d5db226922db3 (diff) | |
tools: ota-dfu: Include a Linux-native OTA DFU tool
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -51,12 +51,15 @@ Note: *If you have a new PineTime then it will have been delivered with flash protection enabled. You must disable the flash protection before trying to program it.* -* Use an SWD programmer to install `bootloader.hex` to the PineTime. - This file is an Intel HEX file containing both the bootloader and - the Nordic SoftDevice. Be careful to disconnect cleanly from the - debug software since just pulling out the SWD cable will mean the - nRF52 will still believe it is being debugged (and won't properly - enter deep sleep modes). +Use an SWD programmer to install `bootloader.hex` to the PineTime. This +file is an Intel HEX file containing both the bootloader and the Nordic +SoftDevice. Be careful to disconnect cleanly from the debug software +since just pulling out the SWD cable will mean the nRF52 will still +believe it is being debugged (and won't properly enter deep sleep +modes). + +To install using Android device: + * Copy `micropython.zip` to your Android device and download nRF Connect for Android if you do not already have it. * In nRF Connect, choose settings and reduce the DFU packet count from @@ -64,6 +67,12 @@ trying to program it.* * Connect to PineDFU using nRFConnect, click the DFU button and send `micropython.zip` to the device. +To install using Linux and ota-dfu: + +* Look up the MAC address for your watch (try: `sudo hcitool lescan`). +* Use ota-dfu to upload `micropython.zip` to the device. For example: + `tools/ota-dfu/dfu.py -z micropython.zip -a A0:B1:C2:D3:E3:F5 --legacy` + At the end of this process your watch will show the time (03:00) together with a date and battery meter. When the watch goes into power saving mode you can use the side button to wake it again. |
