This repository provides a container with the pre requisites for building and developing firmware for the IoTeX Pebble tracker.
The aries pebble application is included as a submodule so it can be optionally downloaded along with the dev container.
- Clone the repository. Use the
--recursive
flag when cloning the repository if you want to clone the aries application. If you don't use the recursive flag only the generic environemnt will be cloned, and you can create a new applicatin from scratch (explained below). - Open the folder where you have cloned this repository in VS Code.
- Install the
Remote: Containers
VS Code extension if you don't already have it installed. - Press
F1
to open the command panel. Then typeContainers: Reopen in container
. - The VS Code window will reaload and initialize the container. Wait for this step to finish, it may take a few minutes.
ℹ️ NOTE:
By default VS Code will bind mount your workspace directory to the devcontainer. This means that if you clone the aries firmware as a submodule, you will be able to view the files while VS Code is connected remotely to the container. Code navigation, debugging, editing files will work seamlessly.
Once the container is initialised, it should have installed the NRF Connect
extension.
You should be able to see it see it in the left side panel. If you can't, check your extensions panel and enable the NRF Connect extension.
Click on the NRF Connect icon to open the extension view:
If you already have an existing application and want to add it to your workspace. Follow the next steps:
- Click on
Add an existing application
on the NRF Connect side panel. - If you have cloned pebble-firmware, then you should see a directory named
pebble-firmware
. - Navigate to
pebble-firmware/nrf/applications/Aries/
and pressOK
. - A new panel on the right named
Applications
will be created containing the Aries application.
- Open the NRF Connect extension panel and click
Create a new application
. - Select the applicaiton template you want to use.
- Change application name and location or use the default ones.
- Click
Create application
.
Now you should be able to see your application under the Applications tab
In order to build the application you need to create a build configuration.
You can have several build configurations for the same application. This can happen for example if you want to use the applicaiton in different boards.
Follow the next steps to create a build configuration for pebble tracker. Change the board if you would like to use a different board:
- Click the
Add build configuration button
on your existent app. - Select the
Nordic boards
radio button. - Select
iotex_pebble_hw30ns
from the dropdown. - Change the build directory name if you wish.
- Click
Build Configuration
.
The app build will start, you can see the build progress in your terminal.
The build files will be paced inside your build directory (spcified when creating the build configuration).
The application hex file will be at <build_directory/zephyr/app_test_update.hex>
.