forked from atc1441/D6-arduino-nRF5
-
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.
Merge branch 'main' of https://github.com/ljunquera/arduino-smartwatc…
…h-boards into main
- Loading branch information
Showing
2 changed files
with
124 additions
and
59 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 |
---|---|---|
@@ -1,15 +1,8 @@ | ||
# D6 Fitness Tracker Arduino Core for Nordic Semiconductor nRF5 based boards | ||
|
||
This core is edited for the D6 Fitness Tracker, it is original from here https://github.com/sandeepmistry/arduino-nRF5 | ||
This core is edited for the D6 Fitness Tracker, it is original from here https://github.com/atc1441/D6-arduino-nRF5, which has much of the documentation. | ||
|
||
This is the Installable version of the Portable version shown in this Video: | ||
(Click on the Picture to watch the Video) | ||
[![YoutubeVideo](https://img.youtube.com/vi/3gjmEdEDJ5A/0.jpg)](https://www.youtube.com/watch?v=3gjmEdEDJ5A) | ||
|
||
After installation the Core works as in the Video | ||
|
||
Here is the [D6Flasher](https://play.google.com/store/apps/details?id=com.atcnetz.ble.readwrite) on Google Play-store | ||
with the Flasher it is Possible to flash the Created firmware over the air, please view the Youtube Video. | ||
|
||
## Installing | ||
|
||
|
@@ -18,55 +11,130 @@ with the Flasher it is Possible to flash the Created firmware over the air, plea | |
1. [Download and install the Arduino IDE](https://www.arduino.cc/en/Main/Software) (At least v1.6.12) | ||
2. Start the Arduino IDE | ||
3. Go into Preferences | ||
4. Add ```https://atc1441.github.io/D6Library/package_nRF5_boards_index.json``` as an "Additional Board Manager URL" | ||
4. Add ```https://ljunquera.github.io/package_smartwatch-boards_index.json``` as an "Additional Board Manager URL" | ||
5. Open the Boards Manager from the Tools -> Board menu and install "D6 Tracker by ATC1441" | ||
6. Select the DSD6 Tracker board from the Tools -> Board menu | ||
7. You will find the DFU update file in a folder like this on windows. ```C:\Users\USERNAME\AppData\Local\Temp\arduino_build_RANDOM\SKETCHNAME.ino.zip``` | ||
|
||
__NOTE:__ During installation it takes the Arduino IDE a few minutes to extract the tools after they have been downloaded, please be patient. | ||
|
||
|
||
### Adafruit's nrfutil tools | ||
|
||
[adafruit-nrfutil](https://github.com/adafruit/Adafruit_nRF52_nrfutil) (derived from Nordic pc-nrfutil) is needed to create the OTA update file. | ||
|
||
- For Windows and macOS, pre-built executable binaries are included in the BSP at `tools/adafruit-nrfutil/`. It should work out of the box. | ||
- Linux users need to run the follow commands to install the nrfutil tools: | ||
|
||
``` | ||
$ pip3 install wheel --user | ||
$ pip3 install adafruit-nrfutil --user | ||
``` | ||
Then make sure `adafruit-nrfutil` executable is in your path, if not try to add the following to your `.bashrc` file: | ||
``` | ||
PATH="$HOME/.local/bin/:$PATH" | ||
``` | ||
After that you may need to restart your pc. | ||
### Driver Setup for St-Link | ||
1. Download [Zadig](http://zadig.akeo.ie) | ||
2. Plugin St-Link board | ||
3. Start ```Zadig``` | ||
4. Select ```Options -> List All Devices``` | ||
5. Plug and unplug your device to find what changes, and select the ```St-Link``` from the device dropdown | ||
6. Click ```Replace Driver``` / ```Install Driver``` | ||
__NOTE__: To roll back to the original driver go to: Device Manager -> Right click on device -> Check box for "Delete the driver software for this device" and click Uninstall | ||
### Pinout, Flashfiles and Espruino Version | ||
Here [Fanoush](https://github.com/fanoush/ds-d6) made much work in the Espruino direction with the Pinout and Flash Backup files. | ||
## Credits | ||
Copy from the [Sandeepmistry core](https://github.com/sandeepmistry/arduino-nRF5) and edited to make D6 Fitness Tracker Compatible. | ||
This core is based on the [Arduino SAMD Core](https://github.com/arduino/ArduinoCore-samd) and licensed under the same [LGPL License](LICENSE) | ||
Nrfutil taken from [Adafruit nRF52 Library](https://github.com/adafruit/Adafruit_nRF52_Arduino) | ||
The following tools are used: | ||
|
||
* [GCC ARM Embedded](https://launchpad.net/gcc-arm-embedded) as the compiler | ||
* A [forked](https://github.com/sandeepmistry/openocd-code-nrf5) version of [OpenOCD](http://openocd.org) to flash sketches | ||
## JSON File | ||
``` | ||
{ | ||
"packages": [ | ||
{ | ||
"name": "smartwatch-boards", | ||
"maintainer": "ljunquera, editied from ATC1441, edited from sandeepmistry", | ||
"websiteURL": "https://github.com/ljunquera/arduino-smartwatch-boards", | ||
"email": "[email protected]", | ||
"help": { | ||
"online": "https://github.com/ljunquera/arduino-smartwatch-boards/issues" | ||
}, | ||
"platforms": [ | ||
{ | ||
"name": "Smartwatch Boards", | ||
"architecture": "nRF5", | ||
"version": "0.1.2", | ||
"category": "Contributed", | ||
"help": { | ||
"online": "https://github.com/atc1441/D6-arduino-nRF5/issues" | ||
}, | ||
"url": "https://github.com/ljunquera/arduino-smartwatch-boards/archive/refs/tags/0.1.2.tar.gz", | ||
"archiveFileName": "arduino-smartwatch-boards-0.1.2.tar.gz", | ||
"checksum": "MD5:237bf3a8bc56b51bd6c8e9c95ee3732e", | ||
"size": "15600126", | ||
"boards": [ | ||
{ | ||
"name": "Kalinco p22" | ||
}, | ||
{ | ||
"name": "DaFit Watch Bootloader 23" | ||
} | ||
], | ||
"toolsDependencies": [ | ||
{ | ||
"packager": "nRF52D6Fitness", | ||
"name": "gcc-arm-none-eabi", | ||
"version": "5_2-2015q4" | ||
}, | ||
{ | ||
"packager": "nRF52D6Fitness", | ||
"name": "openocd", | ||
"version": "0.10.0-dev.nrf5" | ||
} | ||
] | ||
} | ||
], | ||
"tools": [ | ||
{ | ||
"name": "gcc-arm-none-eabi", | ||
"version": "5_2-2015q4", | ||
"systems": [ | ||
{ | ||
"host": "i386-apple-darwin11", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/gcc-arm-none-eabi-5_2-2015q4-20151219-mac.tar.bz2", | ||
"archiveFileName": "gcc-arm-none-eabi-5_2-2015q4-20151219-mac.tar.bz2", | ||
"size": "96372129", | ||
"checksum": "MD5:603bcce8e59683ac27054b3197a53254" | ||
}, | ||
{ | ||
"host": "i686-linux-gnu", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2", | ||
"archiveFileName": "gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2", | ||
"size": "92811866", | ||
"checksum": "MD5:f88caac80b4444a17344f57ccb760b90" | ||
}, | ||
{ | ||
"host": "x86_64-pc-linux-gnu", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2", | ||
"archiveFileName": "gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2", | ||
"size": "92811866", | ||
"checksum": "MD5:f88caac80b4444a17344f57ccb760b90" | ||
}, | ||
{ | ||
"host": "i686-mingw32", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/gcc-arm-none-eabi-5_2-2015q4-20151219-win32.tar.bz2", | ||
"archiveFileName": "gcc-arm-none-eabi-5_2-2015q4-20151219-win32.tar.bz2", | ||
"size": "102981732", | ||
"checksum": "MD5:32d950225b6c7c886f6225c1fc578934" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "openocd", | ||
"version": "0.10.0-dev.nrf5", | ||
"systems": [ | ||
{ | ||
"host": "i386-apple-darwin11", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/openocd-osx-0.10.0-dev-nrf5.tar.gz", | ||
"archiveFileName": "openocd-osx-0.10.0-dev-nrf5.tar.gz", | ||
"size": "1345243", | ||
"checksum": "MD5:3ffaa4e7cd4b96770eec65002c5959e3" | ||
}, | ||
{ | ||
"host": "i686-linux-gnu", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/openocd-linux32-0.10.0-dev-nrf5.tar.gz", | ||
"archiveFileName": "openocd-linux32-0.10.0-dev-nrf5.tar.gz", | ||
"size": "3585042", | ||
"checksum": "MD5:02b3f4a3004cae86631bf13837c84504" | ||
}, | ||
{ | ||
"host": "x86_64-pc-linux-gnu", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/openocd-linux32-0.10.0-dev-nrf5.tar.gz", | ||
"archiveFileName": "openocd-linux32-0.10.0-dev-nrf5.tar.gz", | ||
"size": "3585042", | ||
"checksum": "MD5:02b3f4a3004cae86631bf13837c84504" | ||
}, | ||
{ | ||
"host": "i686-mingw32", | ||
"url": "https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/openocd-win32-0.10.0-dev-nrf5.tar.gz", | ||
"archiveFileName": "openocd-win32-0.10.0-dev-nrf5.tar.gz", | ||
"size": "5498373", | ||
"checksum": "MD5:3acd3b08afda2bb09e75a0de5ac7c3cd" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
``` |
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