Fixing Image Burning Errors

"Error: Opening COMxx: Access denied" is displayed when I start image burning

  • Symptom

    "Error: Opening COMxx: Access denied" is displayed after a serial port is selected to start image burning.

    Figure 1 Failed to open the serial port

    hi3516-faq-serial-access-denied

  • Possible Causes

    The serial port is in use.

  • Solution

  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 in use

    hi3516-faq-serial-check

  2. Click the dustbin icon as shown below to disable the terminal using the serial port.

    Figure 3 Disabling the terminal using the serial port

    hi3516-faq-serial-close-terminal

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

    Figure 4 Restarting the burning task

    hi3516-faq-serial-reburn

The development board failed to connect to the PC

  • Symptom

    The file image cannot be obtained after a serial port is selected to start image burning.

    Figure 5 Failed to obtain the file image due to network disconnection

    hi3516-faq-network-fail

  • Possible Causes

    The development board is disconnected from the PC.

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

  • Solution

  1. Check whether the network cable is properly connected.

  2. Click Windows Firewall.

    Figure 6 Network and firewall settings

    hi3516-faq-firewall-setting

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

    Figure 7 Firewall and network protection

    hi3516-faq-firewall-setting-allow

  4. Select Visual Studio Code.

    Figure 8 Selecting Visual Studio Code

    hi3516-faq-firewall-find-vscode

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

    Figure 9 Allowing Visual Studio Code to access the network

    hi3516-faq-firewall-vscode-allow-network

(Hi3516) No information is displayed through the serial port

  • Symptom

    The serial port shows that the connection has been established. However, no information is displayed through the serial port after the board is restarted and Enter is pressed.

  • Possible Cause 1

    The serial port is connected incorrectly.

  • Solution

    Change the serial port number.

    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, correct the serial port number by following instructions in "Error: Opening COMxx: Access denied" is displayed when I start image burning.

  • Possible Cause 2

    The U-Boot of the board is damaged.

  • Solution

    Burn the U-Boot.

    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:

  1. Obtain the U-Boot file.

    icon-notice.gif NOTICE

    You can download the U-Boot file from the open-source package.

  2. Burn the U-Boot file.

    Follow the instructions in Burning Through the USB Port.

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

    Figure 10 Information displayed through the serial port after the U-Boot is burnt

    hi3516-faq-burn-uboot-success