quickstart-lite-steps-hi3518-faqs.md 6.9 KB
Newer Older
D
duangavin123 已提交
1
# FAQs<a name="EN-US_TOPIC_0000001128311064"></a>
D
duanxichao 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15

-   [What should I do when the images failed to be burnt over the selected serial port?](#section1498892119619)
-   [What should I do when Windows-based PC failed to be connected to the board?](#section8512971816)
-   [What should I do when the image failed to be burnt?](#section1767804111198)
-   [What should I do when the message indicating Python cannot be found is displayed during compilation and building?](#en-us_topic_0000001053466255_section1039835245619)
-   [What should I do when no command output is displayed?](#en-us_topic_0000001053466255_section14871149155911)

## What should I do when the images failed to be burnt over the selected serial port?<a name="section1498892119619"></a>

-   **Symptom**

    **Error: Opening COMxx: Access denied**  is displayed after clicking  **Burn**  and selecting a serial port.

    **Figure  1**  Failed to open the serial port<a name="en-us_topic_0000001053466255_fig066333283916"></a>  
D
duangavin123 已提交
16
    ![](figure/failed-to-open-the-serial-port-17.png "failed-to-open-the-serial-port-17")
D
duanxichao 已提交
17 18 19 20 21 22 23 24 25 26

-   **Possible Causes**

    The serial port has been used.

-   **Solutions**

1.  Search for the terminal using serial-xx from the drop-down list in the  **TERMINAL**  panel.

    **Figure  2**  Checking whether the serial port is used<a name="en-us_topic_0000001053466255_fig165994164420"></a>  
D
duangavin123 已提交
27
    ![](figure/checking-whether-the-serial-port-is-used-18.png "checking-whether-the-serial-port-is-used-18")
D
duanxichao 已提交
28 29 30 31

2.  Click the dustbin icon as shown in the following figure to disable the terminal using the serial port.

    **Figure  3**  Disabling the terminal using the serial port<a name="en-us_topic_0000001053466255_fig7911282453"></a>  
D
duangavin123 已提交
32
    ![](figure/disabling-the-terminal-using-the-serial-port-19.png "disabling-the-terminal-using-the-serial-port-19")
D
duanxichao 已提交
33 34 35

3.  Click  **Burn**, select the serial port, and start burning images again.

D
duangavin123 已提交
36 37
    **Figure  4**  Restarting burning<a name="fig87139519227"></a>  
    ![](figure/restarting-burning-20.png "restarting-burning-20")
D
duanxichao 已提交
38 39 40 41 42 43 44 45 46


## What should I do when Windows-based PC failed to be connected to the board?<a name="section8512971816"></a>

-   **Symptom**

    The file image cannot be obtained after clicking  **Burn**  and selecting a serial port.

    **Figure  5**  Failed to obtain the image file due to unavailable connection<a name="en-us_topic_0000001053466255_fig5218920223"></a>  
D
duangavin123 已提交
47
    ![](figure/failed-to-obtain-the-image-file-due-to-unavailable-connection-21.png "failed-to-obtain-the-image-file-due-to-unavailable-connection-21")
D
duanxichao 已提交
48 49 50 51 52 53 54 55 56 57 58 59

-   **Possible Causes**

    The board is disconnected from the Windows-based PC.

    Windows Firewall does not allow Visual Studio Code to access the network.

-   **Solutions**

1.  Check whether the network cable is properly connected.
2.  Click  **Windows Firewall**.

D
duangavin123 已提交
60 61
    **Figure  6**  Network and firewall setting<a name="fig954464811215"></a>  
    ![](figure/network-and-firewall-setting-22.png "network-and-firewall-setting-22")
D
duanxichao 已提交
62 63 64

3.  Click  **Firewall & network protection**, and on the displayed page, click  **Allow applications to communicate through Windows Firewall**.

D
duangavin123 已提交
65 66
    **Figure  7**  Firewall and network protection<a name="fig158731526101312"></a>  
    ![](figure/firewall-and-network-protection-23.png "firewall-and-network-protection-23")
D
duanxichao 已提交
67

D
duangavin123 已提交
68
4.  Select the Visual Studio Code application.
D
duanxichao 已提交
69

D
duangavin123 已提交
70 71
    **Figure  8**  Selecting the Visual Studio Code application<a name="fig96572537139"></a>  
    ![](figure/selecting-the-visual-studio-code-application-24.png "selecting-the-visual-studio-code-application-24")
D
duanxichao 已提交
72 73 74

5.  Select the  **Private**  and  **Public**  network access rights for the Visual Studio Code application.

D
duangavin123 已提交
75 76
    **Figure  9**  Allowing the Visual Studio Code application to access the network<a name="fig18201217161411"></a>  
    ![](figure/allowing-the-visual-studio-code-application-to-access-the-network-25.png "allowing-the-visual-studio-code-application-to-access-the-network-25")
D
duanxichao 已提交
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97


## What should I do when the image failed to be burnt?<a name="section1767804111198"></a>

-   **Symptom**

    The burning status is not displayed after clicking  **Burn**  and selecting a serial port.

-   **Possible Causes**

    The IDE is not restarted after the DevEco plug-in is installed.

-   **Solutions**

    Restart the IDE.


## What should I do when the message indicating Python cannot be found is displayed during compilation and building?<a name="en-us_topic_0000001053466255_section1039835245619"></a>

-   **Symptom**

D
duangavin123 已提交
98
    ![](figure/error.png)
D
duanxichao 已提交
99 100 101 102 103 104 105 106


-   **Possible Cause 1**

    Python is not installed.

-   **Solutions**

D
duangavin123 已提交
107
    Install Python as instructed in  [Installing and Configuring Python](quickstart-lite-env-setup-linux.md#section1238412211211).
D
duanxichao 已提交
108 109 110

-   **Possible Cause 2**: The soft link that points to the Python does not exist in the usr/bin directory.

D
duangavin123 已提交
111
    ![](figure/error2.png)
D
duanxichao 已提交
112 113 114 115 116 117 118 119 120 121 122 123 124 125

-   **Solutions**

    Run the following commands:

    ```
    # cd /usr/bin/
    # which python3
    # ln -s /usr/local/bin/python3 python
    # python --version
    ```

    Example:

D
duangavin123 已提交
126
    ![](figure/solution-26.png)
D
duanxichao 已提交
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142


## What should I do when no command output is displayed?<a name="en-us_topic_0000001053466255_section14871149155911"></a>

-   **Symptom**

    The serial port shows that the connection has been established. After the board is restarted, nothing is displayed when you press  **Enter**.

-   **Possible Cause 1**

    The serial port is connected incorrectly.

-   **Solutions**

    Change the serial port number.

D
duangavin123 已提交
143
    Start  **Device Manager**  to check whether the serial port connected to the board is the same as that connected to the terminal device. If the serial ports are different, perform step  [1](#section1498892119619)  in the  **Running an Image**  section to change the serial port number.
D
duanxichao 已提交
144 145 146 147


-   **Possible Cause 2**

D
duangavin123 已提交
148
    The U-Boot of the board is damaged.
D
duanxichao 已提交
149 150 151

-   **Solutions**

D
duangavin123 已提交
152
    Burn the U-Boot.
D
duanxichao 已提交
153

D
duangavin123 已提交
154
    If the fault persists after you perform the preceding operations, the U-Boot of the board may be damaged. You can burn the U-Boot by performing the following steps:
D
duanxichao 已提交
155 156


D
duangavin123 已提交
157
1.  Obtain the U-Boot file.
D
duanxichao 已提交
158

D
duangavin123 已提交
159
    >![](../public_sys-resources/icon-notice.gif) **NOTICE:** 
D
duangavin123 已提交
160
    >The U-Boot file of the two boards can be obtained from the following paths, respectively.
D
duanxichao 已提交
161 162 163
    >Hi3516D V300:  **device\\hisilicon\\hispark\_taurus\\sdk\_liteos\\uboot\\out\\boot\\u-boot-hi3516dv300.bin**
    >Hi3518E V300:  **device\\hisilicon\\hispark\_aries\\sdk\_liteos\\uboot\\out\\boot\\u-boot-hi3518ev300.bin**

D
duangavin123 已提交
164
2.  Burn the U-Boot file by following the procedures for burning a U-Boot file over USB.
D
duanxichao 已提交
165

D
duangavin123 已提交
166
    Select the U-Boot files of corresponding development boards for burning by referring to  [Programming Flash Memory on the Hi3516](https://device.harmonyos.com/en/docs/ide/user-guides/hi3516_upload-0000001052148681)/[Programming Flash Memory on the Hi3518](https://device.harmonyos.com/en/docs/ide/user-guides/hi3518_upload-0000001057313128)
D
duanxichao 已提交
167 168 169

3.  Log in to the serial port after the burning is complete.

D
duangavin123 已提交
170
    ![](figure/login-serial-port.png)
D
duanxichao 已提交
171 172