Skip to content

A bare-metal example for the Teensy 4.0 board with C++ STL support

Notifications You must be signed in to change notification settings

itsermo/baremetal-blinky.teensy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teensy 4.0 Bare-Metal C++ Example

This is a bare-metal example for the Teensy 4.0 board. It's intended to be used with the free GCC ARM toolchain.

It contains support for C++17 STL and fast assmebly implementations of essential memset() and memcpy() functions.

The generated HEX file is compatible with the Teensy Loader.

Build Instructions (macOS)

  1. Install the ARM GCC Toolchain for Embedded Processors
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
  1. Compile the source
make
  1. Flash the binary
make flash

Build Instructions (linux)

  1. Install the ARM GCC Toolchain for Embedded Processors

Fedora or RHL-based Distro

sudo dnf install arm-none-eabi-gcc

Ubuntu or Debian-based Distro

sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi
  1. Compile the source
make
  1. Flash the binary
make flash

Credits

Linker files and startup code are based on the Teensy Core Libraries for Arduino by Paul Stoffregen.

About

A bare-metal example for the Teensy 4.0 board with C++ STL support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.0%
  • Other 1.0%