harmony(鸿蒙)Running

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

Running

Starting the System

After burning is completed, you need to configure the bootloader to run the OpenHarmony system.

  1. In the Hi3516D V300 task, click Configure bootloader (Boot OS) to configure the bootloader.

icon-note.gif NOTE The bootloader configuration in DevEco Device Tool has been adapted to Hi3516D V300. Therefore, no manual modification is needed.

en-us_image_0000001209906547

  1. When the message shown below is displayed, restart the development board. If “SUCCESS” is displayed, it indicates that the configuration is successful.

en-us_image_0000001210385161

  1. Click Monitor on the taskbar to start the serial port tool.

en-us_image_0000001164506870

  1. When the command output is displayed, press Enter until OHOS # is displayed, indicating that the system is started successfully.

en-us_image_0000001198626874

Running a Hello World Program

After the system is started, copy the executable file helloworld in the out directory of the source code to the bin directory, and run the Hello World program as follows:

  1. Go to the bin directory on the startup page.
   cd bin
  1. Run the following command to run the helloworld program:
   ./helloworld

If the message “Hello World!” is displayed, the program runs successfully.

en-us_image_0000001271234769

Next

Congratulations! You have finished all steps! Proceed to develop a sample camera with a screen to better familiarize yourself with OpenHarmony development.

你可能感兴趣的鸿蒙文章

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  赞