Last Updated on : 2024-11-20 08:51:43download
Building projects for EFR32 relies on Python scripts. If you develop on Linux or Windows, you need to install a Python 2.7.x interpreter. It is recommended to install IAR Embedded Workbench on Windows for easy development.
This topic uses the sample project under silicon_labs_zigbee\app\switch\project\sample_switch1\EFR32MG13P732F512
as an example to describe how to set up the development environment.
Make sure to use the genuine IAR Embedded Workbench for ARM 8.40.1 or later versions. Version 8.40.1 is strongly recommended.
Window + R
key to open the Run dialog. Enter CMD
and press Enter
for the command prompt. Then, enter Python. If Python 2.7 is displayed on the screen, it means the environment variable is configured.Do not use Python later than 2.7. Otherwise, the production file cannot be built or errors occur.
sample_switch1
as an example to show you how to build projects with IAR.
Navigate to silicon_labs_zigbee\app\switch\project\sample_switch1\EFR32MG13P732F512
.
Double click tuya_sdk.eww
to open the project.
Build the project.
Do not open your project by using Open Workspace
. Otherwise, the build process might fail. Before Rebuild All
, Clean
is recommended.
Since the Zigbee SDK comes with a GCC compiler, you can navigate to sample_switch1\EFR32MG13P732F512
and run the following command to build projects.
#./run.sh clean // Removes intermediate files.
#./run.sh build 0 // Build for release.
#./run.sh build 1 // Build for debugging.
silicon_lib_zigbee
.chmod –R 777 *
.silicon_labs_zigbee/tools
, delete the compiler folder gcc-arm-none-eabi-9-2019-q4-major
, and unzip the compiler again. tar -xvf gcc-arm-none-eabi-9-2019-q4-major.tar.bz2
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback