tree: a8a7861b9525774cd000b5f05293eab4c0547d71 [path history] [tgz]
  1. app/
  2. doc/
  3. project_include/
  4. args.gni
  5. BUILD.gn
  6. README.md
examples/platform/qpg6100/README.md

CHIP QPG6100 Example Application

An example application showing the use CHIP on the Qorvo QPG6100.



Introduction

QPG6100 DK board

Several example applications are provided to to demonstrate a CHIP
device, with Thread connectivity, using BLE to perform CHIP provisioning
on the Qorvo QPG6100 SDK. More information about each application can be
found in the APPLICATION.md file found in the qpg6100 directory of the
example application directory

Currently supported example applications

For more information on Qorvo and the platforms, please visit the Qorvo website or contact us on LPW.support@qorvo.com.

Building

Preparation

# Linux
sudo apt-get install git make libtool ccache ninja-build
# Mac OS X
brew install libtool ccache ninja
  • Clone the CHIP repo into a local directory
cd ~
git clone https://github.com/project-chip/connectedhomeip.git
  • The Qorvo CHIP SDK is added as a submodule in /third_party/qpg_sdk/repo. To manually clone this repo you can clone it from CHIP SDK
cd ~
git clone https://github.com/Qorvo/qpg-connectedhomeip

Compilation

  • Set the following environment variables before compilation:
export ARM_GCC_INSTALL_ROOT=${HOME}/tools/gcc-arm-none-eabi-9-2019-q4-major/bin
export PATH=$PATH:$ARM_GCC_INSTALL_ROOT
  • Optionally, to use a different version of the QPG6100 SDK from the one bundled with CHIP:
export QPG6100_SDK_ROOT=${HOME}/qpg-connectedhomeip
  • All builds are GN/ninja based
cd ~/connectedhomeip/examples/[lighting|lock]-app/qpg6100
source third_party/connectedhomeip/scripts/activate.sh
gn gen out/debug
ninja -C out/debug

Flashing the application

The QPG6100 DK boards can be programmed using:

CMSIS-DAP Drag and Drop

Drag/copy the hex-file generated to the mBED drive that appears when plugging in the DK board.

Segger JLink debugger

Connect the Segger J-Link to the programming header and use the Segger SW to flash the .hex.

More detailed information to be included in SDK Documentation.

Viewing Logging Output

  • Launch a serial terminal with baudrate 115200.
  • At startup you will see:
qvCHIP v0.0.0.0 (CL:155586) running
[P][-] Init CHIP Stack
[P][DL] BLEManagerImpl::Init() complete
[P][-] Starting Platform Manager Event Loop
[P][-] ==================================
[P][-] Qorvo [Application Name] Launching
[P][-] ==================================
[D][DL] CHIP task running
  • Note! Logging is currently encapsulated by the Qorvo logging module. Output
    will have additional header and footer bytes. This will be updated later
    into a raw stream for any serial terminal to parse.