How to burn the Zigbee install code, MAC address, and other Zigbee factory data?
Before you start using the Qorvo® IoT SDK, you must install and activate the development environment. All commands used for development (e.g., building and programming) must be executed after activating the Qorvo® IoT SDK. If you want to work in multiple shell sessions, you need to activate the Qorvo® IoT SDK in each session.
The build environment for this SDK requires a Linux operating system. Instructions below are based on Ubuntu 22.04 Linux distribution.
Install the SDK and Activate the development
To install and activate the Qorvo® IoT SDK, complete the following steps:
- Navigate to the top-level directory of the Qorvo® IoT SDK.
- Execute the following command:
source ./Scripts/activate.sh
Once finished, your development environment is ready for use.
Building
Install the Qorvo® IoT SDK before building an application.
If you want to modify Zigbee factory data, please navigate to the following path from the root directory of the SDK.
cd Libraries/Qorvo/FactoryBlock
Then you can modify MAC address and other Zigbee factory data in Applicationname.fb.xml.
If you want to modify Zigbee install code, please navigate to the following path from the root directory of the SDK.
cd Libraries/Qorvo/PersistentStorageBlock
Then you can modify install code in Applicationname.psb.xml.
To build an application, complete the following steps:
- Navigate to the directory containing the data you have modified.
- Execute the
make
command with the appropriate Makefile. For example, to build the mac address of application Switch, run:
cd Libraries/Qorvo/FactoryBlock
make -f Makefile.FactoryBlock_qpg6200_Switch clean
make -f Makefile.FactoryBlock_qpg6200_Switch
- Find the generated
hex
file in yourWork/FactoryBlock_qpg6200_Switch/
directory.
Programming
Connect your Development Kit to your PC using the USB cable. Your PC should recognize the device as a standard USB drive. To program the QPG6200, choose from one of two supported tools.
Programming using JLink tools
Programming using JLink tools is the recommended method to program your device. Download and install the latest version of J-Link from the Segger website.
After you have installed the latest J-Link Software pack, you can use JFlash Lite
to program and erase your device.
Warning
Update existing installation
must be selected during the installation.