harmony(鸿蒙)Burning

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

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.

For the RK3568 development board, image files are burnt in Windows.

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_0000001279587085

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

Burning

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

  1. Download and install DriverInstall.exe.

icon-note.gif NOTE

If the burning tool of an earlier version has been installed, uninstall it first.

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

  2. 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 RK3568 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_0000001239661509

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

    • upload_partitions_profile: Select the burning profile file, 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 upgrade.

    en-us_image_0000001194504874

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

  3. Choose PROJECT TASKS > hh_scdy200 > Upload to start burning.

en-us_image_0000001194821710

  1. If the message “Operation paused, Please press Enter key to continue” is displayed, press Enter.

icon-note.gif NOTE

If the message “The board is not in Loader mode. Please Hold on the VOL+key…” is displayed, place the development board in Loader mode as follows: Press and hold the Volume+ key for 3 seconds, press the RESET key, wait for 3 seconds, and then release the Volume+ key.

Wait until the burning is complete. If the following message is displayed, the burning is successful.

en-us_image_0000001194984912

你可能感兴趣的鸿蒙文章

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  赞