Configure ZigBee module works on 2.4
Click "OK" to return the project interface. As shown below, to find the "custom_efr32mg1b132f256gm48.hwconf" file, and double-click it.
Click on "DefaultMode Peripherals", to switch to "DefaultMode Peripherals" interface, as shown in FIG.
As shown below, check the "DCDC", Cancel "PTI".
As shown below, check the "Serial".
Configure two LED, as shown in FIG.
Configure two buttons, as shown in FIG.
Configuration "CMU", as shown below.
As shown below, check the "SWCLKTCK" and "SWDIOTMS".
Note: Due to Tiancheng ZigBee Development Kit using the emulator using the SWD download mode here if you do not check the "SWCLKTCK" and "SWDIOTMS" will damage the chip, causing the module can not be used.
After completion of the above arrangement, be found in the "File" menu "Save All" Click Save Settings, as shown in FIG.
2.5IAR compile the project
As shown below, double-click "Coordinator.eww", using the IAR open project.
IAR Open project as shown below.
Click " " (or select in the menu Project Rebuild All) began to compile the project, as shown below.
The project is compiled, such as no errors, as shown below.
If a compilation error shown in the figure below.
Open the two files in the folder where the project under:
"Project name -postbuild.bat" (The Coordinator-postbuild.bat in the present embodiment).
And "project name -prebuild.bat" (The Coordinator-prebuild.bat in the present embodiment).
See these two files jython package file reference path is correct, as shown below is the correct path .
If the path appears as shown below, for the error.
You need to have it modified as follows correct path.
"%studioInstallationDir%/plugins\com.silabs.external.jython_2.7.0.201811151725-10\external_jython\2.7.0\jython-2.7.0.jar"
Note: The two files need to be modified.
Modify completed two files and save , and then rebuild the project .
2.6 download
Simplicity Studio return main interface as shown below, click on the " " Open Toolbox.
Select download tool "Simplicity Commander" in the toolbox, as shown in FIG.
Download tool as shown in FIG.
In the "J-Link Device" has selected the connected emulator, click on the "Connect" emulator is connected, as shown in FIG.
Select "Flash", load the project folder ".s37" project file, as shown below.
As shown below, the right click Target "Connect", ZigBee module is connected, connection is successful, as shown in FIG. Click "Erase chip" Erase chip.
Recognizing the need to download the correct file, click on the "Flash" to start the download project files, as shown below.
Shown below reselection, bootloader file to be downloaded.
As shown below, click the "Flash" to start downloading bootloader files.