当前位置:网站首页>STM32 virtualization environment of QEMU
STM32 virtualization environment of QEMU
2022-07-05 08:11:00 【Nanbolwan】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
List of articles
Preface
Close to the year ,2021 The new year is once again affected by the new crown and can't go home well . Because the work needs to know a little ARM Knowledge of assembly , So I decided to study . The first thing I want to do is to have a learning environment , It's not worth buying a development board , So I hope it can be used qemu Build a virtual environment to help your learning enthusiasm .
One 、qemu What is it?
qeme It's a virtual machine , Self supporting many architectures cpu, Anyway, it's an open source and powerful thing . For details, please refer to the instructions on the official website , In most cases, this thing is used to run embedded linux Systematic . I feel that theoretically, one can also be simulated stm32 Development board , Generally, these things are github In the upper probability, someone will have done it , Go up and look for it . I didn't expect to find https://github.com/beckus/qemu_stm32
Two 、 Do as you say
1. Environment description and source code construction
Before you start, you need to install linux Your computer or linux Virtual machines can also , My notebook itself is ubuntu System , Because I used to do embedded linux The developed cross compilers also have , So the environment is still perfect , So start straight .
Access to the source code :
git clone git://github.com/beckus/qemu_stm32.git
To configure :
./configure --enable-debug --disable-werror --target-list="arm-softmmu"
This step requires many libraries , Just install whatever library you lack . There is no –disable-werror This parameter , I will report an error when compiling, but I can't compile , Just add this entry .
Compile and install :
make && make install
Installation may require root jurisdiction , You can choose the following command :
sudo make install
2. function Demo
The source code author provides Demo, Download it and you can compile and run it directly .
git clone git://github.com/beckus/stm32_p103_demos.git
cd stm32_p103_demos
./configure
make
Compilation requires a cross compiler , This has been done. arm linux Students of development should be familiar with , Compiler name is arm-none-eabi-gcc, If there is no installation, you can directly execute the command installation :
sudo apt-get install arm-none-eabi-gcc
After compilation , At every demo There will be a... Under the folder main.bin file , We can run , Then test our learning environment ;
cd /stm32_p103_demos/demos/qemu_test
qemu-system-arm -M stm32-p103 -kernel main.bin
The successful running !!!
summary
Here we are , There should be no problem with the environment , But how to write a program and run it needs further research , Next, I plan to study demo Source code and Makefile To implement your own program , Then further study qemu Source code stm32 Part of the source code , Interested partners are welcome to study and discuss .
边栏推荐
- Imx6ull bare metal development learning 2- use C language to light LED indicator
- Summary -st2.0 Hall angle estimation
- Network communication model -- Network OSI tcp/ip layering
- Several implementation schemes of anti reverse connection protection of positive and negative poles of power supply!
- Beijing Winter Olympics opening ceremony display equipment record 3
- 【云原生 | 从零开始学Kubernetes】三、Kubernetes集群管理工具kubectl
- 动力电池UL2580测试项目包括哪些
- Detailed explanation of SQL server stored procedures
- String judgment
- Semiconductor devices (I) PN junction
猜你喜欢
Negative pressure generation of buck-boost circuit
Several important parameters of LDO circuit design and type selection
List of linked lists
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
1-stm32 operation environment construction
Talk about the circuit use of TVs tube
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
Solutions to compilation warnings in Quartus II
My-basic application 2: my-basic installation and operation
Why is 1900 not a leap year
随机推荐
Soem EtherCAT source code analysis I (data type definition)
[paper reading] the latest transfer ability in deep learning: a survey in 2022
[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc
Basic embedded concepts
NTC thermistor application - temperature measurement
UEFI development learning 2 - running ovmf in QEMU
Embedded composition and route
Programming knowledge -- basis of C language
Negative pressure generation of buck-boost circuit
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
Several implementation schemes of anti reverse connection protection of positive and negative poles of power supply!
[trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
Development tools -- gcc compiler usage
Shell脚本基本语法
Explain task scheduling based on Cortex-M3 in detail (Part 2)
Anonymous structure in C language
C language # and #
[trio basic tutorial 17 from getting started to mastering] set up and connect the trio motion controller and input the activation code
On boost circuit
Summary -st2.0 Hall angle estimation