Build on Windows
hello
The Pebble firmware can be easily configured and built on Windows using Pebble SDK: a customized version of the Nordic's nRF Connect SDK. Make sure you have Git installed in your system before you continue.
Download and Install nRF Connect for Windows
First, access the Nordic nRF Connect download page for Desktop (opens new window)and download the latest version of nRF Connect for Windows:
Double-click the downloaded executable file (e.g., nrfconnect-setup-3.6.0-ia32.exe
) and complete the installation.
Install the Nordic Toolchain Manager app
Now launch the nRF Connect utility that you just installed, scroll down to Toolchain Manager and click the Install button to install the app:
Download and install the Pebble SDK package
Finally, download one of the following Pebble SDK installation packages (please notice that this guide is based on v1.3.0):
Pebble SDK 1.3.0 Pebble SDK 1.4.0
and save the file to a known location in your filesystem.
Make sure you have a Github account and that you set up an SSH key for it before you click 'OK' in the next step (check out this guide (opens new window)on how to generate and an SSH key pair for your GitHub account). If you assigned a password to your ssh private key when you generated it, then nRF Connect will ask for this password during the installation.
In the nRF Connect app, scroll down to the Toolchain Manager and click the Open button to open the app. In the toolchain manager window, click the Install package from other source link at the bottom:
select the file Pebble SDK package that you just downloaded (ncs-toolchain-pebble_v1.3.0-20200618-509f057.zip
) and click OK
Open and configure the Embedded Studio IDE
Once the SDK installation is completed, nRF Connect SDK pebble_v1.3.0
will show up in the Toolchain Manager list: Click the Open IDE button:
The compiler toolchain paths in Embedded Studio should be already set, just make sure they are configured correctly:
Choose Options under the Tools menu
Choose nRF Connect on the left side of the "Option" window
Locate Directories section and configure "GNU ARM Embedded Toolchain Directory" and "Zephyr Base" to the corresponding directories, respectively (see the image):
Build the Application Firmware
Build in Embedded Studio IDE
In the Embedded Studio IDE and choose Open nRF Connect SDK Project... under the File menu and configure the paths of CMakeLists.txt and Board Directory, also set Board Name to thingy91_nrf9160ns
, as shown in the image below (please adapt to your Windows user path):
If required, after the project has been generated, you can configure the firmware parameters before the build following the firmware configuration instructions.
Choose Build Solution from the Build menu to build the firmware: check out the output panel for the compilation output and wait until the end of the compilation process.
At the end of the build process you will find the new Pebble firmware file at:
Build from Command Line
If you run into any troubles building the firmware application using Embedded Studio IDE, you can try building the firmware using the command line first.
To do so, locate and open the git-bash.exe
terminal in your SDK folder:
C:\john\ncs\v1.3.0\toolchain\git-bash.exe
in the git-bash terminal, move to the Pebble application folder and compile the application:
Using this build command, the project will be generated in the build
folder, and the firmware file will be built to the build\zephyr\app_signed.hex
path.
See how to configure the firmware before the build. See how to flash the firmware.
Last updated