当前位置:网站首页>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 .
边栏推荐
- UEFI development learning 5 - simple use of protocol
- L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
- Screen record of the opening ceremony of the Beijing winter olympics 2
- Detailed explanation of pragma usage
- Explication de la procédure stockée pour SQL Server
- 【论文阅读】2022年最新迁移学习综述笔注(Transferability in Deep Learning: A Survey)
- Relationship between line voltage and phase voltage, line current and phase current
- 【云原生 | 从零开始学Kubernetes】三、Kubernetes集群管理工具kubectl
- [tutorial 19 of trio basic from introduction to proficiency] detailed introduction of trio as a slave station connecting to the third-party bus (anybus PROFIBUS DP...)
- Consul installation
猜你喜欢
VESC Benjamin test motor parameters
Talk about the circuit use of TVs tube
UEFI development learning 2 - running ovmf in QEMU
Management and use of DokuWiki (supplementary)
PMSM dead time compensation
Hardware and software solution of FPGA key chattering elimination
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
Arduino uses nrf24l01+ communication
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
How to select conductive slip ring
随机推荐
Detailed explanation of SQL server stored procedures
Reasons for rapid wear of conductive slip rings
Several important parameters of LDO circuit design and type selection
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc
Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]
Zero length array in GNU C
Charge pump boost principle - this article will give you a simple understanding
Network communication model -- Network OSI tcp/ip layering
Classic application of MOS transistor circuit design (1) -iic bidirectional level shift
Summary -st2.0 Hall angle estimation
Consul installation
STM32 tutorial triple ADC interleaved sampling
About yolov3, conduct map test directly
Solutions to compilation warnings in Quartus II
C WinForm [exit application] - practice 3
C language enhancement -- pointer
The firmware of the connected j-link does not support the following memory access
Explication de la procédure stockée pour SQL Server
Talk about the circuit use of TVs tube