Skip to content

niklasad1/nrf52dk-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published