teemuatlut / TMC2130Stepper

Arduino library for Trinamic TMC2130 Stepper driver
MIT License
159 stars 50 forks source link

Live Tune example wont compile - Teensy 3.6 #17

Closed bluepuppy closed 6 years ago

bluepuppy commented 6 years ago

Trying to get my motor to work, loaded the live tune example and got this error...

`Arduino: 1.8.5 (Mac OS X), TD: 1.40, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"

Live_tune:15: error: expected constructor, destructor, or type conversion before '(' token ISR(TIMER1_COMPA_vect){//timer1 interrupt 1Hz toggles pin 13 (LED) ^ Live_tune:15: error: expected constructor, destructor, or type conversion before '(' token ISR(TIMER1_COMPA_vect){//timer1 interrupt 1Hz toggles pin 13 (LED) ^ expected constructor, destructor, or type conversion before '(' token

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. `

teemuatlut commented 6 years ago

That example uses direct register manipulation which is different for every platform. You will need to change the code to be Teensy or MK64FX512 compatible for it to work. The current code is for AVR.