This post was last edited by dql2016 on 2023-2-19 19:21
Development environment construction
https://device.harmonyos.com/cn/docs/documentation/guide/ide-install-windows-ubuntu-0000001194073744
Get the code
https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/get-code/sourcecode-acquire.md#https://gitee.com/help/articles/4191
Official Tutorial
https://gitee.com/openharmony/device_soc_hpmicro#https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/get-code/sourcecode-acquire.md
Execute the following command to install the Code Cloud repo tool:
mkdir ~/bin
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/bin/repo
chmod a+x ~/bin/repo
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
Add repo to the environment variables.
vim ~/.bashrc # Edit environment variables
export PATH=~/bin:$PATH # Add a line of repo path information at the end of the environment variable
source ~/.bashrc # Apply environment variables
OpenHarmony trunk code acquisition: download via repo + ssh
repo init -u git@gitee.com:openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
Start compiling:
sudo ./build/prebuilts_download.sh
Execute the hb set
selectedhpmicro
hpm6750evk2
Execute hb build -f
the project compilation. After successful compilation, the following content is displayed:
After using HPMProgrammer to burn out/hpm6750evk2/hpm6750evk2/OHOS_Image.bin to the development board, the startup effect is as follows: