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.
- Install the ARM GCC Toolchain for Embedded Processors
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
- Compile the source
make
- Flash the binary
make flash
- 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
- Compile the source
make
- Flash the binary
make flash
Linker files and startup code are based on the Teensy Core Libraries for Arduino by Paul Stoffregen.