harmony(鸿蒙)Burning

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

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 through the USB port, network port, and serial port. This document describes how to burn source code through the USB port. The operations are performed in Windows.

  1. Connect the computer and the target development board through the serial port and USB port. For details, see Introduction to the Hi3516D V300 Development Board. > icon-note.gif NOTE > If you are using the remote access mode (Windows + Ubuntu on the local VM), disable the USB control of the VM as follows to ensure that the development board is connected to the USB port of the host: > > - VMware: Configure the device to connect to the host under Preferences > USB and remove the USB controller from the VM settings. > > - VirtualBox: Deselect Enable USB Controller in the USB device options under Ubuntu settings.

  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 USB Port Driver on the Hi3516D V300 or Hi3518E V300 Development Board or Installing the Serial Port Driver on the Hi3516D V300 or Hi3518E 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.

en-us_image_0000001261395999

icon-note.gif NOTE This operation is required only in remote access mode (in the Windows+Ubuntu hybrid build environment). If the local access mode (Windows or Ubuntu build environment) is used, skip this step.

  1. Check the serial port number in QUICK ACCESS > DevEco Home > Device in DevEco Device Tool.

en-us_image_0000001216516128

  1. Choose QUICK ACCESS > DevEco Home > Projects, and then click Settings.

en-us_image_0000001198566364

  1. On the hi3516dv300 tab page, set the burning options.
    • upload_partitions: Select the file to be burnt. By default, the fastboot, kernel, rootfs, and userfs files are burnt at the same time.
    • upload_port: Select the serial port number obtained.
    • upload_protocol: Select the burning protocol hiburn-usb.

en-us_image_0000001223190441

  1. In Partitions, check the preset burning settings of the files to be burnt.

en-us_image_0000001312778829

To modify the burning settings for a specific file, click ![en-us_image_0000001312898911](figures/en-us_image_0000001312898911.png) next to the file.

icon-note.gif NOTE Set 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 to be burnt do not overlap.

en-us_image_0000001312780249

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

  2. Go to hi3516dv300 > Upload to transfer the files to be burnt from Ubuntu to Windows. 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_0000001266887264

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

    en-us_image_0000001114129426

    If the following message is displayed, it indicates that the burning is successful.

    en-us_image_0000001160649343

  2. 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(鸿蒙)Writing a Hello World Program

0  赞