DevEco Device Tool comes with 2.1 Beta1. One of the highlights is that the source code for the Hi3861 development board is compiled on the Windows platform. With a strong interest, the first time to do an experience.

Install devicetool-windows-tool-2.1.0.0.zip from devicetool-windows-tool-2.1.0.0.zip from devicetool-windows-tool-2.1.0.0. DevEco Device Tool 2.1 Beta1 is successfully installed.

Then according to the official documentation (device.harmonyos.com/cn/docs/ide…

Then click Add User Component on the Add Toolchain page to Add the tool. Note The version number can be filled in arbitrarily. It cannot be saved without filling it.

Then download repo.huaweicloud.com/harmonyos/o can be compiled on Windows platform source code…

Next, set up the project’s toolchain. Under Platform Options, add ninja, GN, RIScv32, git, and Tool_scons. Save these tools and compile them on Windows

After directly compiling, the demo downloaded to the development board is “startup”. I happen to have the Bear Pie 3861 development pad, see if I can get the Bear Pie onboard indicator to flash. The on-board indicator is GPIO 2, just change the #define LED_TEST_GPIO 2 to “Applications \sample\wifi-iot\app\iothardware\led_example.c”. Change “startup” in “Applications \sample\wifi-iot\app\ build. gn” to “iothardware:led_example “and the indicator should be able to flash.

Result compile failed.

#include “iot_gpio.h” in led_example.c Change the include_dirs path of “applications\sample\wifi-iot\app\iothardware\ build. gn” to “/ / base/iot_hardware/peripheral interfaces/kits”, compile successfully. The indicator light began to blink.

So far, although there are twists and turns, Hi3861 development board directly compiled under Windows platform, experience success.

The resource package is a tool package that you need to download to install the tool chain. You can also download it one by one according to the official document.

[Click to download resource Pack]

Author: Hong Lian

Want to know more, please visit the 51 cto and huawei cooperation HongMeng community: https://harmonyos.51cto.com