Table of Contents | ||
---|---|---|
|
1. Overview
This note describes how to set up and use the Nordic cross-development environment for development and debugging of the Zephyr BSP and a user application running on the Emcraft Thingy-9151-Lite platform.
...
The resulting image is build/zephyr/merged.hex
.
Importing the Thingy-9151-Lite
...
Applications into the VSCode
Start VSCode, activate nRF Connect plugin, In order for nRF Connect plugin to recognize custom board configurations that come along with nrf-app
, add it to the BOARD_ROOT
setting of the plugin. For this start VSCode, navigate to File -> Preferences -> Settings -> Extensions -> nRF Connect -> Board Roots, then add the directory where nrf-app
repository was cloned:<west_init>/nrf-app/
.
Sometimes changing BOARD_ROOT
is not enough and nRF Connect plugin refuses to show boards from <west_init>/nrf-app/boards
as valid configuration targets. To work around this, create fake board skeleton using nRF plugin in the same directory: activate nRF plugin, select 'Create a new board', supply some board name, accept suggested build board name, select any nRF device, specify full path to the <west_init>/nrf-app/boards
and finally enter something as company name. After this nRF Connect plugin creates skeleton for the board in the target path. This board definition will never be used, it is only needed for nRF Connect plugin to scan the <west_init>/nrf-app/boards
for custom board definitions. This steps should only be needed once per workspace.
To import the application(s), activate nRF Connect plugin, select ‘Open an existing application', navigate to wanted application (e.g. <west_init>/nrf-app/thingy9151lite_nrf9151_app
), press 'Open'
It is possible to open several applications into the same workspace.
Building the Thingy-9151-Lite Application for nRF9151/nRF9161 in the VSCode
...
If build configuration for the application does not exist yet (no build folder in the ‘Application’ window of nRF Connect plugin), create one by selecting 'Add ‘Add build configuration' and accepting defaults., selecting 'Custom board’ than target board name:
Select build configuration, use ‘Build' in the 'Actions’ window of the nRF Connect plugin.
...