当前位置:网站首页>Liteos learning - first knowledge of development environment

Liteos learning - first knowledge of development environment

2022-07-02 01:13:00 Fat brother, Miss Wang

Background introduction

Remember the movie 《 Among the great masters 》, There is a saying
 Insert picture description here
It's also the situation , A factory has become a face , Bullying it is tantamount to hitting Chinese people in the face , As for whether it can afford , Say something else .

As early as 2015 year , Huawei launched this LiteOS. If you ask what it has to do with Hongmeng system

Huawei LiteOS Huawei is 2012 The operating system for embedded devices of the Internet of things proposed in , The purpose of the first proposal should be to benchmark the existing RTOS( Real-time operating system , Include FreeRTOS,UCOSII These are still widely used , Familiar real-time operating system ) Develop a domestic RTOS System .

HarmonyOS( Hongmeng operating system ) It's Huawei 2019 year 8 month 9 The operating system officially released on the th , Benchmarking Android 、IOS( The Euler system to be released in the future is the benchmark windows,ubantu And other user oriented desktop operating systems ), Support multi screen collaboration ( Distributed architecture ), Mainly for consumers ( Commercial version ).

So for now , The content and applicable objects of the two are different :LiteOS Mainly for the Internet of things , That is, small embedded devices are suitable for . Hongmeng is mainly used for desktop level .
But there is a certain connection between the two , In the end , Hongmeng will use LiteOS As the kernel , Complete all its localization . All roads lead to Rome .

development environment

LiteOS The development environment and materials can be downloaded here
HUAWEI-LiteOS-Studio
First install one and have a look .
 Insert picture description here
It's all foreign code , Please see the introduction below .

In order to introduce Chinese users more intuitively HUAWEI LiteOS Studio, Used in this document HUAWEI LiteOS Studio Chinese language pack extension installed vscode-language-pack-zh-hans. What the current user can get HUAWEI LiteOS Studio Chinese language pack is not preset by default , Therefore, the interface is displayed in English by default .
In order to introduce me intuitively , So I used English .
broken , I'm a double .

 Insert picture description here

My daughter with yellow skin and black eyes , When I opened my mouth, I shouted :daddy.

 Insert picture description here

To teach her to speak Chinese , You also need to do the following
You need to install git for windows Tools , And add environment variables .
Installation and download will not be mentioned , Configure environment variables , I am using win11, The way , Right click on my computer , then
 Insert picture description here
 Insert picture description here
And remember , Restart the computer !!!!

install arm-none-eabi and make, Just download the official installation script .
In addition, this language pack , Also through the extended download program , Automatically downloaded to your system , It's just C:\Users\ user name .huawei-liteos-studio\extensions\extension-collections below ,
 Insert picture description here

And then by installing vsix Plug in installation

 Insert picture description here
Then restart it .
Why is it so difficult to display Chinese , It's copyright ? Or why , Is not clear .
 Insert picture description here

Create a project -STM32

Click the icon in the toolbar to create the project
 Insert picture description here
We can see , The following types of chips are currently supported .
Create a STM32F103ZE Learn about the configuration of the project . Insert picture description here
After creating the project , Let's click project configuration
 Insert picture description here
You can see the following configuration contents

 Insert picture description here
In component configuration , We can choose a lot of extended content , Various protocol stacks ,lib, file system , And what you can use demo.
 Insert picture description here
Compiled , pass with flying colors .
An error is reported when compiling again
 Insert picture description here
Don't bother . Because there is no corresponding chip and debugger in hand , This one hasn't been tested yet

Create a project -Hi3861

This Hisilicon chip , It should be the chip recommended by the official main force , It also provides a series of supporting services , However, the creation of this project is a little complicated . In addition to the previous installation git, You also need the following operations

  1. Install first. python, Again pip Install some third-party libraries .
  2. You also need to install the compiler
  3. Finally, you need to get WiF-Iot-SDK

For some installation methods, please refer to , In especial SDK Acquisition and parameter configuration
《 Internet of things practice |Huawei LiteOS Construction of development environment and in Hi3861 Run up Demo》

In short, it is a troublesome horse , I'm afraid you can use it smoothly
 Insert picture description here

end

Today I mainly introduce LiteOS Development tools and familiar with a project . In terms of ease of use alone , Compared with the current popularity of the Internet of things ESP8266 Come on , Much worse , The supported components differ by one order of magnitude . At present, it focuses on Runhe manufacturer , Is committed to promoting Hi8361 hi3516 Chip module development .

Take back what I said before , This LiteOS, It's really much worse to lose face .

Today is the Lantern Festival .

The favorite festival of many women in the Tang Dynasty is the Lantern Festival . During the Lantern Festival , The emperor granted a three-day ban , Be commonly called “ lift the night curfew ”. Women who rarely appear in public can walk out of the house like men on the Lantern Festival night . So the Lantern Festival in ancient times was still “ Valentine's Day ”.

Three days and three nights , in the dead of night , Are you going to dance .

原网站

版权声明
本文为[Fat brother, Miss Wang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202152155066665.html