Use HiBurn to burn Hongmeng.bin file to Hi3861 development board

The "First Sample Program of Hi3861 Development Board" in Hongmeng official documents describes how to use DevEco Device Tool to burn binary files to Hi3861 development board;

This article will introduce how to use the HiBurn tool to burn Hongmeng's .bin file to the Hi3861 development board.

Get HiBurn tool

Through the official documents of Hongmeng, we know that DevEco Device Tool is a VSCode plug-in, which is provided to developers in the form of .vsix files. In fact, this file .vsix file is a compressed file in zip format. You can use the file command to identify it in git bash or Linux environment:

$ file DevEcoDeviceTool-1.0.0.vsix
DevEcoDeviceTool-1.0.0.vsix: Zip archive data, at least v2.0 to extract

On Windows, you can use general compression and decompression software to open it and unzip it.

After decompression, you can see a file named HiBurn.exe in the extension\deveco\tools subdirectory, which is the HiBurn tool we will introduce today (you can also download HiBurn.zip directly from the attachment of this article to decompress) .

Use HiBurn to burn .bin files to Hi3861

You need to right-click "Properties" -> Unlock before Win10 system execution, otherwise the system will report a security warning by default and execution is not allowed.

After double-clicking the order to open, the interface is as follows:

Insert picture description here

  1. Click Setting->Com settings in the upper left corner of the interface to enter the serial port parameter setting interface. On the serial port parameter setting interface, Baud is the baud rate and the default is 115200. You can choose 921600, 2000000, or 3000000 (the fastest measured value supported), other parameters Keep the default, click "OK" to save;

Insert picture description here

  1. According to the device manager, select the correct COM port. For example, my development board is COM8. If you plug in the serial port after opening the program, you can click "Refresh" to refresh the options in the serial drop-down box;

    Insert picture description here

  2. Click "Select file" to pop up the file selection dialog box, and select the allinone.bin file generated by the compilation. This bin is actually a file combined with multiple bins, which can also be seen from the naming. For example, I chose Z:\harmonyos\ openharmony\out\wifiiot\Hi3861_wifiiot_app_allinone.bin
    check "Auto burn" to automatically download multiple bin files, here, the configuration is complete, it should be as shown below;

    Insert picture description here

  3. Click Connect to connect the serial device. At this time, HiBurn will open the serial device and try to start programming. You need to make sure that no other programs occupy the serial device (you may be using HyperTerminal or serial assistant to view the serial port log before programming. You need to make sure that other software has been used. Close the currently used serial port);
    reset the device, press the RESET button of the development board;
    wait for three "========================= =================" and if successful appears above, it means that the programming is successful;

  4. After the programming is successful, you need to manually click "Disconnect" to disconnect the serial port, otherwise it will prompt "Wait connect success flag (hisilicon) overtime.";

Comparison with DevEco Device Tool

Compared with using DevEco Device Tool to burn, the advantages of using HiBurn to burn are mainly as follows:

  1. Without relying on VSCode, you don't need to install VSCode, nodejs, JDK, and some npm packages;
  2. The download speed is faster, the maximum baud rate of HiBurn.exe can be set to 3000000, while the maximum DevEco Device Tool can only be 921600, which is three times that;

The main disadvantages of HiBurn burning method are:

  1. You need to manually click Disconnect to actively disconnect, otherwise the download will be repeated by default; after the burning is successful, if you do not disconnect the serial port and press the RESET button again, you will find that it burns again.

  2. The serial port parameters of HiBurn cannot be saved, and you need to reset it next time you open it after you close it, while DevEco can save the serial port parameters;

  3. Compared with DevEco, HiBurn has more steps and a little more complicated operation;

Guess you like

Origin blog.51cto.com/14772288/2553655