Skip to content

Latest commit

 

History

History

uart-driver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rust UART Driver exercise

This folder contains a small Rust no-std application, which is designed to run inside a QEMU emulation of an Armv8-R Cortex-R52 system. We build the code using the armv8r-none-eabihf target.

The application talks to the outside world through a UART driver. We have provided two - a working one, and a template one that doesn't work which you need to fix.

Prerequisites

This demo is designed to run with Ferrocene, which ships the armv8r-none-eabihf target.

Ferrrocene

Run:

criticalup install
cargo run

Rust

If you want to run it with the upstream Rust compiler, you will need to use nightly, and tell cargo to build the standard library from source:

cargo +nightly run -Zbuild-std=core

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.