harmony(鸿蒙)Burning

  • 2022-08-09
  • 浏览 (698)

Burning

Burning is the process of downloading compiled program files to a development board to provide a basis for subsequent debugging. With the one-click burning function of DevEco Device Tool, you can burn images on development boards quickly and efficiently.

Hi3516D V300 supports burning for the small system through the USB port, network port, and serial port. This document describes how to burn source code through the USB port.

Importing Source Code

After the building is complete, ensure that you can remotely access the Ubuntu environment from Windows. Then, perform the following steps to import the source code before burning:

  1. Open DevEco Device Tool, go to the home page, and click Import Project to open your project or source code.

en-us_image_0000001278358765

  1. Select the root directory of the OpenHarmony source code (in Ubuntu), select Import OpenHarmony Source, and click Import. > icon-note.gif NOTE > Make sure the selected directory does not contain Chinese characters or spaces.

en-us_image_0000001271477045

  1. On the Import Project page, select a product, and the SoC, board, company, and kernel fields will be automatically populated. Then, select the OpenHarmony source code version for Ohos Ver.

en-us_image_0000001279426717

  1. Click Open to open the project or source code.

Burning

After the source code is imported, perform the following steps:

icon-note.gif NOTE This feature is available in DevEco Device Tool 2.2 Beta2 and later versions.

  1. Connect the computer and the target development board through the serial port and USB port. For details, see Introduction to the Hi3516 Development Board.

  2. If your computer does not have the USB port driver or USB-to-serial driver, install it by following the instructions in Installing the Serial Port Driver on the Hi3516D V300 or Hi3751 V350 Development Board or Installing the USB Port Driver on the Hi3516D V300 Development Board, depending on the missing driver.

  3. In DevEco Device Tool, choose REMOTE DEVELOPMENT > Local PC to check the connection status between the remote computer (Ubuntu build environment) and the local computer (Windows build environment).

    • If en-us_image_0000001261315939 is displayed on the right of Local PC, the remote computer is connected to the local computer. In this case, no further action is required.
    • If en-us_image_0000001261515989 is displayed, click the connect icon. During the connection, DevEco Device Tool will restart. Therefore, to avoid task interruptions, do not connect to DevEco Device Tool when downloading or building source code.

en-us_image_0000001261395999

  1. Click Project Settings on the menu bar to access the Hi3516D V300 project configuration page.

en-us_image_0000001198566364

  1. On the Tool Chain tab page, set the Uploader burning tool. You can click Install on this page to install the tool online.

en-us_image_0000001198566365

  1. On the hi3516dv300 tab page, set the burning options.

    • upload_partitions: Select the burning profile file (preset by default), which specifies the files to be burnt, start address and length of the partition, and other burning settings. In addition, select Enable to use upload_partitions_profile.

    icon-note.gif NOTE

    In the burning profile file, you can change the start address and length of the partition based on the size of the files to be burnt. Make sure the size of the partition is greater than that of the files to be burnt and the partition addresses of the files do not overlap.

    If this is the first time you burn files to the development board, select Enable to use upload_partitions_profile for upload so that the upload_partitions file will be automatically generated. Afterward, select Enable to use upload_partitions_profile for upload only when you need to generate a new upload_partitions file.

    • upload_protocol: Select the burning protocol hiburn-usb.

    • upload_port: Select the serial port number obtained.

    en-us_image_0000001177478136

  2. When you finish modifying, click Save on the top.

  3. Choose hi3516dv300 > Upload to transfer the files to be burnt from Ubuntu to Windows.

en-us_image_0000001267532292

When the “Operation paused, Please press Enter key to continue” message is displayed, which indicates that the transfer is complete, press Enter to start burning.

en-us_image_0000001114129427

  1. When the following information is displayed in the TERMINAL window, press and hold the Update key within 15 seconds, remove and insert the USB cable, and then release the Update key to start burning.

    en-us_image_0000001326412233.png

When the “SUCCESS” message is displayed, it indicates that the burning is successful.

![en-us_image_0000001160649344](figures/en-us_image_0000001160649344.png)
  1. When the burning is successful, perform the operations in Running to start the system.

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Getting Started

harmony(鸿蒙)Overall Description of Compilation Form Factors

harmony(鸿蒙)Importing a Source Code Project

harmony(鸿蒙)Setting Up the Windows+Ubuntu Hybrid Development Environment

harmony(鸿蒙)Introduction to the Hi3516 Development Board

harmony(鸿蒙)Introduction to the Hi3861 Development Board

harmony(鸿蒙)Mini and Small System Overview

harmony(鸿蒙)Obtaining Source Code

harmony(鸿蒙)Building

harmony(鸿蒙)Burning

0  赞