xPack QEMU Arm STM32

QEMU Arm 所支持的芯片以及开发板

xPack 64-bit QEMU v2.8.0 (qemu-system-gnuarmeclipse).

Supported boards:
Maple LeafLab Arduino-style STM32 microcontroller board (r5)
NUCLEO-F103RB ST Nucleo Development Board for STM32 F1 series
NUCLEO-F411RE ST Nucleo Development Board for STM32 F4 series
NetduinoGo Netduino GoBus Development Board with STM32F4
NetduinoPlus2 Netduino Development Board with STM32F4
OLIMEXINO-STM32 Olimex Maple (Arduino-like) Development Board
STM32-E407 Olimex Development Board for STM32F407ZGT6
STM32-H103 Olimex Header Board for STM32F103RBT6
STM32-P103 Olimex Prototype Board for STM32F103RBT6
STM32-P107 Olimex Prototype Board for STM32F107VCT6
STM32F0-Discovery ST Discovery kit for STM32F051 lines
STM32F4-Discovery ST Discovery kit for STM32F407/417 lines
STM32F429I-Discovery ST Discovery kit for STM32F429/439 lines
generic Generic Cortex-M board; use -mcu to define the device

Supported MCUs:
STM32F051R8
STM32F103RB
STM32F107VC
STM32F405RG
STM32F407VG
STM32F407ZG
STM32F411RE
STM32F429ZI

Warning: support for hardware floating point on Cortex-M4 devices is not available yet.

mbed OS on an Emulator(QEmu)

 https://os.mbed.com/users/noritsuna/notebook/mbed-os-on-an-emulatorqemu/

https://github.com/xpack-dev-tools/qemu-arm-xpack/releases/

https://xpack.github.io/qemu-arm/install/

Download

The GNU/Linux versions of xPack QEMU Arm are packed as TGZ archives. Download the latest version named like:

  • xpack-qemu-arm-2.8.0-7-linux-x64.tgz
  • xpack-qemu-arm-2.8.0-7-linux-x32.tgz

As the name implies, these are GNU/Linux tar.gz archives; they were build on CentOS, but can be executed on most recent GNU/Linux distributions. Select the -x64 file for 64-bit machines and the -x32 file for 32-bit machines.

Unpack

To install QEMU, unpack the archive and copy it to /${HOME}/opt/xPacks/qemu-arm/<version>:

$ mkdir -p ~/opt
$ cd ~/opt

$ tar xvf ~/Downloads/xpack-qemu-arm-2.8.0-7-linux-x64.tgz
$ chmod -R -w xPacks/qemu-arm/2.8.0-7


To check if QEMU starts and is recent, use:

$ ~/opt/xPacks/qemu-arm/2.8.0-7/bin/qemu-system-gnuarmeclipse --version
xPack 64-bit QEMU emulator version 2.8.0-7 (v2.8.0-4-20190211-47-g109b69f49a-dirty)
Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers

 

编译器

https://www.cnblogs.com/schips/p/12345870.html

sudo apt-get install gcc-arm-none-eabi

基于 包管理的 自动安装

sudo apt-get install gcc-arm-none-eabi

测试过在不添加其它ppa的情况下,ubuntu16.04和ubuntu18.04都可以自动安装,只是默认版本号高低不同。
Ubuntu18.04下为gcc version 6.3.1 20170620;ubuntu 16.04下为gcc version 4.9.3 20141119。

查询版本号指令 :arm-none-eabi-gcc -v

添加新的PPA进行安装

参考官方网站,有详细的教程

https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
sudo apt-get install gcc-arm-embedded 


安装指定的版本

版本下载官方网站
https://launchpad.net/gcc-arm-embedded/+download

下载源码包后解压,如本机解压到目录/usr/lib/gcc

添加环境变量
vi /etc/profile
在文件最后添加
export PATH=$PATH:/usr/lib/gcc/gcc-arm-none-eabi-4_9-2014q4/bin
使能环境变量
source /etc/profile
此命令只在当前终端有效,若需要在其它终端中使用,需要重启计算机。

https://gnu-mcu-eclipse.github.io/

https://xpack.github.io

https://github.com/xpack-dev-tools/qemu-arm-xpack/releases/

https://github.com/ilg-archived/qemu

https://www.cnblogs.com/schips/p/12400576.html

原文地址:https://www.cnblogs.com/sinferwu/p/13218718.html