-
Notifications
You must be signed in to change notification settings - Fork 4
Trying to get Teensy3 (with Teensyduino) working with recent Arduino releases #14
Description
This project looks awesome, but I'm stuck.
Using Arduino 1.6.5 or 1.6.6 is not working for me, I have to define many variables in my makefile and make some minor changes to the source. What's the latest supported version? Am I missing something basic here?
Thanks in advance.
My Makefile so far is, which seems unnecessary complex:
BOARD_TAG = teensy31
ARDUINO_PLATFORM_LIB_PATH = /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries
ARCHITECTURE = arm
ARDUINO_ARCH_FLAG = -DARDUINO_ARCH_AVR
MCU = cortex-m4
F_CPU = 72000000
USB_TYPE = USB_SERIAL_HID
LINKSCRIPT = mk20dx256.ld
CPPFLAGS = -mthumb -D__MK20DX256__ -DTEENSYDUINO=126
CXXFLAGS_STD += -std=gnu++0x
CXXFLAGS += -felide-constructors
CXXFLAGS += -fno-rtti
CXXFLAGS += -fsingle-precision-constant
CXXFLAGS += -M -MG -MP -w -x c++
LDFLAGS = -mthumb
LDFLAGS += -fsingle-precision-constant
LDFLAGS += -larm_cortexM4l_math
include ~/Documents/Arduino/Arduino-Makefile/Teensy.mk