Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yvt/zig-armv8m-test
Minimal Zig-based app for Armv8-M + TrustZone
https://github.com/yvt/zig-armv8m-test
arm cortex-m33 iot microcontroller trustzone zig
Last synced: about 2 months ago
JSON representation
Minimal Zig-based app for Armv8-M + TrustZone
- Host: GitHub
- URL: https://github.com/yvt/zig-armv8m-test
- Owner: yvt
- License: apache-2.0
- Archived: true
- Created: 2019-06-27T15:32:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T14:09:04.000Z (over 5 years ago)
- Last Synced: 2024-08-03T23:21:00.436Z (5 months ago)
- Topics: arm, cortex-m33, iot, microcontroller, trustzone, zig
- Language: Zig
- Homepage:
- Size: 49.8 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-zig - yvt/zig-armv8m-test - based app for Armv8-M + TrustZone. (Embedded Development / Utility)
- awesome-zig - zig-armv8m-test🗒️Minimal Zig-based app for Armv8-M + TrustZone
README
Zig on Cortex-M33
=================This repository includes a small example application that runs on [AN505], a Cortex-M33-based prototyping system on FPGA. Written mostly in [Zig] and partly in assembler.
[Zig]: https://ziglang.org
[AN505]: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0505b/index.html## Usage
You need the following things before running this example:
- Either of the following:
- [QEMU] 4.0.0 or later. Older versions are not tested but might work.
- Arm [MPS2+] FPGA prototyping board configured with AN505. The encrypted FPGA image of AN505 is available from [Arm's website].
- Zig [`2cb1f93`](https://github.com/ziglang/zig/commit/2cb1f93894be3f48f0c49004515fa5e8190f69d9) (Aug 16, 2019) or later[QEMU]: https://www.qemu.org
[MPS2+]: https://www.arm.com/products/development-tools/development-boards/mps2-plus
[Arm's website]: https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/download-fpga-images?_ga=2.138343728.123477322.1561466661-1332644519.1559889185Do the following:
```shell
$ zig build -Drelease-small qemu
(Hit ^A X to quit QEMU)
The Secure code is running!
Booting the Non-Secure code...
NS: Hello from the Non-Secure world!
\
```[![asciicast](https://asciinema.org/a/254103.svg)](https://asciinema.org/a/254103)
## License
This project is dual-licensed under the Apache License Version 2.0 and the MIT License.