Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 814 Bytes

README.md

File metadata and controls

45 lines (37 loc) · 814 Bytes

nrf52dk-rs

Requirements

  1. Rust (install via rustup)

Installation

Rust

$ curl https://sh.rustup.rs -sSf | sh
# Install nightly Rust
$ rustup install nightly
# Install Rust source
$ rustup component add rust-src
# Install target `thumbv7em-none-eabi`
$ rustup target add thumbv7em-none-eabi
# Install llvm-tools
$ rustup component add llvm-tools-preview --toolchain=nightly
# Disable incremental compilation
$ export CARGO_INCREMENTAL=0

Usage

Build

$ make

Build and flash via JLink

$ make flash app=blinky

Debug via gdb

$ cd jtag
$ ./JLinkGDBServer.sh
$ arm-none-eabi-gdb -x gdbinit.jlink
$ b reset_handler
$ b main

Contributing

Pull requests are welcome and create issues for questions or similar