Skip to content

A base project the build projects for the teensy 3.6 Cortex-M4 in Rust.

Notifications You must be signed in to change notification settings

ConnorBP/Rusted-Teensy-Base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teensy teensy 3.6 (Cortex M4 MK66FX1M0) rust embeded toolchain template

What is this? This is a template for starting an embeded project with Rust on the Teensy3.6 or other Cortex M4 MK66FX1M0 board. It can be re-configured for just about any Cortex M board such as M3 or M7 if you change the memory mapped regions (in layout.ld) from the spec in it's manual datasheet.

This project is based on a tutorial blog post here, with updated utilities, newers api functions, and memory mapped for the Teensy3.6.

Another repositiory that looks useful as well: Cortex-M Quickstart

Some Spec Sheets:

Also thumbv7em-none-eabihf in .cargo/config should be thumbv7em-none-eabi if your device does not have a floating point unit (FPU) on cortex M4 or M7, thumbv6m-none-eabi for Cortex-M0 or M0+, and thumbv7m-none-eabi for Cortex-M3.

Setting up Build Environment

Intall the nightly last shown as stable for rls and clippy on rust-toolstate

Note:

  • Make sure to replace the 2018-04-15 date below with the latest stable version you found above
  • Also replace 2018-04-15 in the rust-toolchain file
  • Make sure to replace thumbv7em-none-eabihf with the aplicable embeded toolchain for your device

Install toolchain:

$ rustup toolchain install nightly-2018-04-15
$ rustup component add --target thumbv7em-none-eabihf rust-std --toolchain=nightly-2018-04-15

then install binutils

on Linux (with pacman utils):

$ sudo pacman -S arm-none-eabi-binutils

on Mac (with Homebrew): osx-cross/homebrew-arm

# to tap the repository
$ brew tap osx-cross/arm
# to install the toolchain
$ brew install arm-gcc-bin

Finally, get the teensy loader here and add it somewhere in your path.

About

A base project the build projects for the teensy 3.6 Cortex-M4 in Rust.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published