Note

This is the documentation for the latest development branch and may refer to features that are not available in released versions. If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

How to Run and Add a HelloWorld Application#

This document is divided into two parts:

  • First, run the HelloWorld already provided by the SDK (fastest way to verify the environment)

  • Then add/modify your own HelloWorld application

Add/Modify HelloWorld#

You can modify directly based on the existing src/applications/helloworld, or copy it as a new application directory.

Compile#

Compile Individually#

cd <sdk_root>/src/applications/helloworld
make
ls

An executable file helloworld is generated, which can be manually copied to the board for execution.

Compile the Entire img#

  1. Modify src/applications/apps.mk and add the corresponding directory to the build system.

cat src/applications/apps.mk
-include $(SDK_SRC_ROOT_DIR)/.config

subdirs-$(CONFIG_APP_ENABLE_HELLOWORLD) += helloworld
  1. Enable the APP compilation feature in menuconfig

make menuconfig
Application Configuration > Enable Application HelloWorld

Then execute make or make app to compile the applications under the src/applications directory.

make

Flash the compiled IMG to the development board. The application will be packaged into the /sdcard/app/ directory of the image, and users can set it to start automatically on boot or run it manually for testing.

Comments list
Comments
Log in