https://github.com/ajblane/armv8m-hello
Say "hello world" to mps2-an505 with cortex-m33 in QEMU
https://github.com/ajblane/armv8m-hello
cortex-m33 iotkit msp2-an505 qemu
Last synced: 4 months ago
JSON representation
Say "hello world" to mps2-an505 with cortex-m33 in QEMU
- Host: GitHub
- URL: https://github.com/ajblane/armv8m-hello
- Owner: ajblane
- Created: 2018-04-14T02:19:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T14:19:05.000Z (about 8 years ago)
- Last Synced: 2025-03-01T11:15:56.336Z (over 1 year ago)
- Topics: cortex-m33, iotkit, msp2-an505, qemu
- Language: Makefile
- Homepage:
- Size: 3.91 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
armv8m-hello
---
Prerequisites
---
* OS:
ubuntu 18.04
```
sudo apt-get install git
sudo apt-get install python
```
* gcc linaro toolchain (armv8l-linux-gnueabihf):
download [gcc-linaro-7.3.1-2018.04-rc1-x86_64_armv8l-linux-gnueabihf](http://snapshots.linaro.org/components/toolchain/binaries/7.3-2018.04-rc1/armv8l-linux-gnueabihf/) and extract into the project directory.
* build qemu
```
$ git clone https://github.com/qemu/qemu.git
$ cd qemu
$ mkdir build
$ cd build
$ ../configure --enable-debug
$ make
$ make install
```
inspect mps2-an505 by using qemu-system-arm after building completely qemu
```
$ qemu-system-arm -machine help
```
Quickly Started
---
* run
```
$ cd armv8m-hello
$ make
$ make qemu
```
* debug qemu with kernel.elf
```
$ make
$ make gdbqemu
```
* debug kernel.elf in qemu
a terminal for the gdb server
```
$ make
$ make gdbserver
```
a terminal for gdb
```
$ make gdb
```