Crates.io | msp432p401r-hal |
lib.rs | msp432p401r-hal |
version | 0.2.0 |
source | src |
created_at | 2020-11-23 18:57:54.880815 |
updated_at | 2021-04-06 21:49:19.849468 |
description | MSP432P401R Hardware Abstraction Layer |
homepage | |
repository | https://github.com/msp432-rust/msp432p401r-hal |
max_upload_size | |
id | 315501 |
size | 85,070 |
Hardware Abstraction Layer for MSP432P401R microcontroller
Currently under development:
Make sure you have OpenOCD and GNU ARM Embedded toolchain installed and up-to-date
$ brew install openocd --HEAD
Setup Rust nightly and add the ARM build platform target:
$ rustup default nightly
$ rustup target add thumbv7em-none-eabihf
Clone and compile the project:
$ git clone https://github.com/msp432-rust/msp432p401r-hal.git
$ cd msp432p401r-hal
$ example=hello_world
$ cargo build --example $example
Open a OpenOCD server and leave it open in a terminal:
$ openocd
On a separate terminal, open the GDB client:
$ arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/examples/$example
$ (gdb) target extended-remote :3333
$ (gdb) load
$ (gdb) monitor arm semihosting enable
$ (gdb) continue