Silicon EmberZNet_ZigBee3.0_EFR32MG development diary Five: New EmberZNet Project 2

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.

 

image

 

Click on "DefaultMode Peripherals", to switch to "DefaultMode Peripherals" interface, as shown in FIG.

image

As shown below, check the "DCDC", Cancel "PTI".

image

As shown below, check the "Serial".

image

Configure two LED, as shown in FIG.

image

image

Configure two buttons, as shown in FIG.

image

image

Configuration "CMU", as shown below.

image

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.

image

After completion of the above arrangement, be found in the "File" menu "Save All" Click Save Settings, as shown in FIG.

image

image

2.5IAR compile the project

 

As shown below, double-click "Coordinator.eww", using the IAR open project.

image

IAR Open project as shown below.

image

Click " " (or select in the menu Project Rebuild All) began to compile the project, as shown below.image

image

The project is compiled, such as no errors, as shown below.

image

If a compilation error shown in the figure below.

image

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 .

image

If the path appears as shown below, for the error.

image

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.image

image

Select download tool "Simplicity Commander" in the toolbox, as shown in FIG.

image

Download tool as shown in FIG.

image

In the "J-Link Device" has selected the connected emulator, click on the "Connect" emulator is connected, as shown in FIG.

image

Select "Flash", load the project folder ".s37" project file, as shown below.

image

As shown below, the right click Target "Connect", ZigBee module is connected, connection is successful, as shown in FIG. Click "Erase chip" Erase chip.

image

Recognizing the need to download the correct file, click on the "Flash" to start the download project files, as shown below.

image

Shown below reselection, bootloader file to be downloaded.

image

As shown below, click the "Flash" to start downloading bootloader files.

image

 

 

 

Guess you like

Origin blog.51cto.com/13528138/2428002