quickstart-ide-3516-burn.md 4.7 KB
Newer Older
E
ester.zhou 已提交
1 2 3 4 5 6 7 8 9
# Burning an Image


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.


The images of Hi3516DV300 are burnt in the Windows environment. After burning is initiated, DevEco Device Tool copies the target program files generated in the Ubuntu environment to the specified Windows directory in remote mode, and then burns the program files to Hi3516DV300 using the Windows burning tool.


E
ester.zhou 已提交
10
Hi3516DV300 supports burning for the small system through the USB port, network port, and serial port. This topic describes how to burn source code through the USB port.
E
ester.zhou 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


## Prerequisites

- [Source code building](quickstart-ide-3516-build.md) has been completed.

- The serial port driver has been installed on Hi3516DV300. For details, see [Installing the Serial Port Driver on the Hi3516D V300 Development Board](https://device.harmonyos.com/en/docs/documentation/guide/hi3516_hi3518-drivers-0000001050743695).

- The USB port driver has been installed on Hi3516DV300. For details, see [Installing the USB Port Driver on the Hi3516D V300 Development Board](https://device.harmonyos.com/en/docs/documentation/guide/usb_driver-0000001058690393).


## Procedure

1. Connect the computer and the target development board through the serial port and USB port. For details, see [Hi3516 Development Board](quickstart-appendix-hi3516.md).

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_0000001326512673](figures/en-us_image_0000001326512673.png) 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_0000001275432904](figures/en-us_image_0000001275432904.png) 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_0000001285658392](figures/en-us_image_0000001285658392.png)

3. Click **Project Settings** on the menu bar to access the Hi3516DV300 project configuration page.

   ![en-us_image_0000001275752808](figures/en-us_image_0000001275752808.png)

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

   ![Phoenix-upload](figures/Phoenix-upload.png)

5. On the **hi3516dv300** tab page, set the burning options. The settings are automatically saved.
   - **upload_partitions**: Select the file to be burnt. By default, the **fastboot**, **kernel**, **rootfs**, and **userfs** files are burnt at the same time. Check the preset information of the files to be burnt and modify them when necessary. To modify the burning settings for a specific file, click ![en-us_image_0000001275592884](figures/en-us_image_0000001275592884.png) next to the file.
      > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
E
ester.zhou 已提交
43
      >
E
ester.zhou 已提交
44 45 46
      > 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.

      ![3516-small-partitions](figures/3516-small-partitions.png)
E
ester.zhou 已提交
47

E
ester.zhou 已提交
48 49
   - **upload_protocol**: Select the burning protocol **hiburn-usb**.
   - **upload_port**: Select the serial port number obtained.
E
ester.zhou 已提交
50 51 52
  
   ![3516-small-usb](figures/3516-small-usb.png)
   
E
ester.zhou 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
6. Choose **hi3516dv300** > **Upload** to transfer the files to be burnt from Ubuntu to Windows.

   ![en-us_image_0000001326234609](figures/en-us_image_0000001326234609.png)

   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_0000001275835836](figures/en-us_image_0000001275835836.png)

7. 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](figures/en-us_image_0000001326412233.png)

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

   ![en-us_image_0000001276317464](figures/en-us_image_0000001276317464.png)

E
ester.zhou 已提交
69
8. When the burning is successful, perform the operations in [Running an Image](quickstart-ide-3516-running.md) to start the system.