🐱 Development environment for Teensy in pure C or C++
Reference: https://yui0.github.io/teensy4/
- arm-none-eabi-gcc
- arm-none-eabi-g++
dnf install arm-none-eabi-gcc arm-none-eabi-newlib
pushd teensy/tools/arm/bin
cp -aus /usr/bin/arm-none-eabi* .
popd
$ make
$ make upload
$ make blink
$ docker pull berry0/teensy-dev:latest
$ docker run --net=host -it -d --name teensy-dev berry0/teensy-dev:latest
$ docker exec -it teensy-dev /bin/bash
# cd /arduino-sdk/teensy/tools/
# echo "yes" | sh setup_segger.sh
# cd /arduino-sdk/teensy/teensy4
# make
# make upload
# make clean
# cd /arduino-sdk/teensy/teensy4.mini
# make
# make upload
# make clean
- To be able to compile and upload C code to an Arduino board, one has to install the following packages:
- avr-gcc : Cross Compiling GNU GCC targeted at avr
- avr-libc : C library for use with GCC on Atmel AVR microcontrollers
- avrdude : Software for programming Atmel AVR microcontroller
$ sh create_arduino_sdk.sh
...
$ sh create_arduino_project.sh led