提交 f70165d3 编写于 作者: E ester.zhou

update docs

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 5625145c
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
Error: Opening COMxx: Access denied is displayed after clicking Burn and selecting a serial port. Error: Opening COMxx: Access denied is displayed after clicking Burn and selecting a serial port.
**Figure 1** Failed to open the serial port **Figure 1** Failed to open the serial port
![en-us_image_0000001226634728](figures/en-us_image_0000001226634728.png) ![en-us_image_0000001226634728](figures/en-us_image_0000001226634728.png)
- **Possible Causes** - **Possible Causes**
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
The file image cannot be obtained after clicking Burn and selecting a serial port. The file image cannot be obtained after clicking Burn and selecting a serial port.
**Figure 5** Failed to obtain the file image due to network disconnection **Figure 5** Failed to obtain the file image due to network disconnection
![en-us_image_0000001271234757](figures/en-us_image_0000001271234757.png) ![en-us_image_0000001271234757](figures/en-us_image_0000001271234757.png)
- **Possible Causes** - **Possible Causes**
...@@ -125,15 +125,12 @@ ...@@ -125,15 +125,12 @@
1. Obtain the U-Boot file. 1. Obtain the U-Boot file.
> ![icon-notice.gif](public_sys-resources/icon-notice.gif) **NOTICE** > ![icon-notice.gif](public_sys-resources/icon-notice.gif) **NOTICE**
> The U-Boot file of the two boards can be obtained from the following paths, respectively. >
> > The U-Boot file can be obtained from the following path: device\hisilicon\hispark_taurus\sdk_liteos\uboot\out\boot\u-boot-hi3516dv300.bin.
> 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
2. Burn the U-Boot file by following the procedures for burning a U-Boot file over USB. 2. Burn the U-Boot file by following the procedures for burning a U-Boot file over USB.
Select the U-Boot files of corresponding development boards for burning by referring to [Burning to Hi3516D V300](https://device.harmonyos.com/en/docs/documentation/guide/ide-hi3516-upload-0000001052148681)/[Burning to Hi3518E V300](https://device.harmonyos.com/en/docs/documentation/guide/ide-hi3518-upload-0000001057313128#section93591711580). Select the U-Boot files of corresponding development boards for burning by referring to [Burning to Hi3516D V300](https://device.harmonyos.com/en/docs/documentation/guide/ide-hi3516-upload-0000001052148681).
3. Log in to the serial port after the burning is complete. 3. Log in to the serial port after the burning is complete.
......
...@@ -8,7 +8,7 @@ The following exemplifies how to run the first program on the development board. ...@@ -8,7 +8,7 @@ The following exemplifies how to run the first program on the development board.
The complete code directory is as follows: The complete code directory is as follows:
``` ```
applications/sample/hello applications/sample/hello
│ │── BUILD.gn │ │── BUILD.gn
...@@ -21,7 +21,7 @@ build ...@@ -21,7 +21,7 @@ build
└── subsystem_config.json └── subsystem_config.json
productdefine/common productdefine/common
└── products └── products
└── Hi3568DV300.json └── Hi3516DV300.json
``` ```
...@@ -34,7 +34,7 @@ Perform the steps below in the source code directory: ...@@ -34,7 +34,7 @@ Perform the steps below in the source code directory:
Create the **applications/sample/hello/src/helloworld.c** directory and file whose code is shown in the following example. You can customize the content to be printed. For example, you can change **World** to **OH**. Declare the string printing function **HelloPrint** in the **helloworld.h** file. You can use either C or C++ to develop a program. Create the **applications/sample/hello/src/helloworld.c** directory and file whose code is shown in the following example. You can customize the content to be printed. For example, you can change **World** to **OH**. Declare the string printing function **HelloPrint** in the **helloworld.h** file. You can use either C or C++ to develop a program.
``` ```
#include <stdio.h> #include <stdio.h>
#include "helloworld.h" #include "helloworld.h"
...@@ -55,7 +55,7 @@ Perform the steps below in the source code directory: ...@@ -55,7 +55,7 @@ Perform the steps below in the source code directory:
Add the header file **applications/sample/hello/include/helloworld.h**. The sample code is as follows: Add the header file **applications/sample/hello/include/helloworld.h**. The sample code is as follows:
``` ```
#ifndef HELLOWORLD_H #ifndef HELLOWORLD_H
#define HELLOWORLD_H #define HELLOWORLD_H
...@@ -78,7 +78,7 @@ Perform the steps below in the source code directory: ...@@ -78,7 +78,7 @@ Perform the steps below in the source code directory:
2. Create a build file. 2. Create a build file.
1. Create the **applications/sample/hello/BUILD.gn** file. The file content is as follows: 1. Create the **applications/sample/hello/BUILD.gn** file. The file content is as follows:
``` ```
import("//build/ohos.gni") # Import the build template. import("//build/ohos.gni") # Import the build template.
ohos_executable("helloworld") {# Executable module. ohos_executable("helloworld") {# Executable module.
...@@ -99,7 +99,7 @@ Perform the steps below in the source code directory: ...@@ -99,7 +99,7 @@ Perform the steps below in the source code directory:
} }
``` ```
2. Create the **applications/sample/hello/bundle.json** file and add the description of the **sample** component. The content is as follows: 2. Create the **applications/sample/hello/bundle.json** file and add the description of the **sample** component. The content is as follows:
``` ```
{ {
"name": "@ohos/hello", "name": "@ohos/hello",
...@@ -141,7 +141,7 @@ Perform the steps below in the source code directory: ...@@ -141,7 +141,7 @@ Perform the steps below in the source code directory:
Add the configuration of the new subsystem to the **build/subsystem_config.json** file. Add the configuration of the new subsystem to the **build/subsystem_config.json** file.
``` ```
"sample": { "sample": {
"path": "applications/sample/hello", "path": "applications/sample/hello",
...@@ -153,7 +153,7 @@ Perform the steps below in the source code directory: ...@@ -153,7 +153,7 @@ Perform the steps below in the source code directory:
In the **productdefine/common/products/Hi3516DV300.json** file, add the **hello** part after the existing part. In the **productdefine/common/products/Hi3516DV300.json** file, add the **hello** part after the existing part.
``` ```
"usb:usb_manager_native":{}, "usb:usb_manager_native":{},
"applications:prebuilt_hap":{}, "applications:prebuilt_hap":{},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册