Teensyduino 1.27 Beta #2 Available

Status
Not open for further replies.
SD library examples (eg. CardInfo) do not compile on Teensy 3.1/3.2 platform while they compile well on other platforms (e.g. ProMini) when SDFat library is installed in the main libraries directory.

There are many errors seen during the compilation - here is the first one as an example
C:\Program Files (x86)\ArduinoIDE\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:25:57: error: 'void (* SdFile::dateTime_)(uint16_t*, uint16_t*)' is not a static member of 'class SdFile'
void (*SdFile::dateTime_)(uint16_t* date, uint16_t* time) = NULL;

Looks like Teensy is taking the SdFat library from wrong folder (main libraries instead of the Teensy's SD/utility).

You can see the following when compiling:
Using library SD in folder: C:\Program Files (x86)\ArduinoIDE\hardware\teensy\avr\libraries\SD (legacy)
Using library SPI in folder: C:\Program Files (x86)\ArduinoIDE\hardware\teensy\avr\libraries\SPI (legacy)
Using library SdFat in folder: C:\Program Files (x86)\ArduinoIDE\libraries\SdFat (legacy)

I guess it is due to the missing utility/ path in Teensy's SD\utility\SDFile.cpp and SD\utility\SDVolume.cpp includes.

EDIT: Oh, forgot to mention - ArduinoIDE 1.6.7
 
Last edited:
FYI: IDE 1.6.7 with TD_1.27b2 I opened Example / Cardinfo and it compiled no problem.

Using library SD in folder: I:\Teensy167\hardware\teensy\avr\libraries\SD (legacy)
Using library SPI in folder: I:\Teensy167\hardware\teensy\avr\libraries\SPI (legacy)

pawelsky - my path is as shown from a (un)ZIP install to 'I:\Teensy167' - nothing goes in program (x86)
 
Last edited:
I did have a local SdFat - it was giving other errors so I removed it.
I do have : 'I:\Teensy167\hardware\teensy\avr\libraries\SD\utility' with SDFat - the specified cardinfo compiled.
 
Compiled and programmed a
Wii Nunchuck controller with libraries Servo, Wire, SPI, timers, and SED1330 support with Win10 and 1.67 IDE for Teensy LC.
 
I did have a local SdFat - it was giving other errors so I removed it.
So that's why you don't see errors. As I mentioned errors appear only when the external SdFat library (not the one from Teensyduino) is installed, because the builder selects the wrong library for compilation.
 
After installing the Teensyduino Beta 2 (onto Arduino IDE v1.6.7, Win10-64b), I have a sketch for a color/touch-screen shield that no longer compiles for use on Arduino Uno R3.

First compile error I saw was related to "#define true 1" and "define false 0" in teensy wiring.h being reported by IDE (AVRISP) as being "redefined"; I commented out those lines 42 & 43 to eliminate that compile-time error.

Now I'm seeing another more complex compile error, as follows:

===================

Arduino: 1.6.7 (Windows 10), TD: 1.27-beta2, Board: "Arduino/Genuino Uno"

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:825:88: error: 'void digitalWrite(uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

static inline void digitalWrite(uint8_t, uint8_t) __attribute__((always_inline, unused));

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:126:6: error: previous declaration of 'void digitalWrite(uint8_t, uint8_t)' [-fpermissive]

void digitalWrite(uint8_t, uint8_t);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: In function 'void digitalWrite(uint8_t, uint8_t)':

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:831:5: error: 'CORE_PIN0_PORTREG' was not declared in this scope

CORE_PIN0_PORTREG |= CORE_PIN0_BITMASK;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:831:26: error: 'CORE_PIN0_BITMASK' was not declared in this scope

CORE_PIN0_PORTREG |= CORE_PIN0_BITMASK;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:833:5: error: 'CORE_PIN1_PORTREG' was not declared in this scope

CORE_PIN1_PORTREG |= CORE_PIN1_BITMASK;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:833:26: error: 'CORE_PIN1_BITMASK' was not declared in this scope

CORE_PIN1_PORTREG |= CORE_PIN1_BITMASK;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:835:5: error: 'CORE_PIN2_PORTREG' was not declared in this scope

CORE_PIN2_PORTREG |= CORE_PIN2_BITMASK;

^
///////////// About 80,000 characters snipped out of error report here to allow posting on this forum without exceeding character limit; nearly all of those were CORE PINs and BITMASK variables not declared in scope ///////////
^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1750:18: error: 'COM1C1' was not declared in this scope

TCCR1A |= (1<<COM1C1);

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1791:14: error: 'CORE_NUM_TOTAL_PINS' was not declared in this scope

if (pin < CORE_NUM_TOTAL_PINS) {

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: At global scope:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1805:102: error: 'void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

static inline void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t) __attribute__((always_inline, unused));

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:139:6: error: previous declaration of 'void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]

void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1823:95: error: 'uint8_t shiftIn(uint8_t, uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

static inline uint8_t shiftIn(uint8_t, uint8_t, uint8_t) __attribute__((always_inline, unused));

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:140:9: error: previous declaration of 'uint8_t shiftIn(uint8_t, uint8_t, uint8_t)' [-fpermissive]

uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: In function 'void analogReference(uint8_t)':

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1849:48: error: 'void analogReference(uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

static inline void analogReference(uint8_t mode)

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:129:6: error: previous declaration of 'void analogReference(uint8_t)' [-fpermissive]

void analogReference(uint8_t mode);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: At global scope:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1861:74: error: 'uint32_t millis()' was declared 'extern' and later 'static' [-fpermissive]

static inline uint32_t millis(void) __attribute__((always_inline, unused));

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:132:15: error: previous declaration of 'long unsigned int millis()' [-fpermissive]

unsigned long millis(void);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1880:74: error: 'uint32_t micros()' was declared 'extern' and later 'static' [-fpermissive]

static inline uint32_t micros(void) __attribute__((always_inline, unused));

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:133:15: error: previous declaration of 'long unsigned int micros()' [-fpermissive]

unsigned long micros(void);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1889:85: error: 'void delayMicroseconds(uint16_t)' was declared 'extern' and later 'static' [-fpermissive]

static inline void delayMicroseconds(uint16_t) __attribute__((always_inline, unused));

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:135:6: error: previous declaration of 'void delayMicroseconds(unsigned int)' [-fpermissive]

void delayMicroseconds(unsigned int us);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19:0,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:96:17: error: conflicting declaration 'typedef uint8_t boolean'

typedef uint8_t boolean;

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'

typedef bool boolean;

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19:0,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:102:59: error: declaration of C function 'void attachInterrupt(uint8_t, void (*)(), uint8_t)' conflicts with

void attachInterrupt(uint8_t, void (*)(void), uint8_t mode);

^

In file included from sketch\TFTpaint.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:142:6: error: previous declaration 'void attachInterrupt(uint8_t, void (*)(), int)' here

void attachInterrupt(uint8_t, void (*)(void), int mode);

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:24:22: error: redefinition of 'const uint8_t SS'

const static uint8_t SS = CORE_SS0_PIN;

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,

from sketch\TFTpaint.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:38:22: error: 'const uint8_t SS' previously defined here

static const uint8_t SS = 10;

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:24:29: error: 'CORE_SS0_PIN' was not declared in this scope

const static uint8_t SS = CORE_SS0_PIN;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:25:22: error: redefinition of 'const uint8_t MOSI'

const static uint8_t MOSI = CORE_MOSI0_PIN;

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,

from sketch\TFTpaint.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:39:22: error: 'const uint8_t MOSI' previously defined here

static const uint8_t MOSI = 11;

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:25:29: error: 'CORE_MOSI0_PIN' was not declared in this scope

const static uint8_t MOSI = CORE_MOSI0_PIN;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:26:22: error: redefinition of 'const uint8_t MISO'

const static uint8_t MISO = CORE_MISO0_PIN;

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,

from sketch\TFTpaint.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:40:22: error: 'const uint8_t MISO' previously defined here

static const uint8_t MISO = 12;

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:26:29: error: 'CORE_MISO0_PIN' was not declared in this scope

const static uint8_t MISO = CORE_MISO0_PIN;

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:27:22: error: redefinition of 'const uint8_t SCK'

const static uint8_t SCK = CORE_SCLK0_PIN;

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,

from sketch\TFTpaint.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:41:22: error: 'const uint8_t SCK' previously defined here

static const uint8_t SCK = 13;

^

In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,

from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,

from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,

from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:27:29: error: 'CORE_SCLK0_PIN' was not declared in this scope

const static uint8_t SCK = CORE_SCLK0_PIN;

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,

from sketch\TFTpaint.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:45:21: error: expected unqualified-id before numeric constant

#define LED_BUILTIN 13

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:28:22: note: in expansion of macro 'LED_BUILTIN'

const static uint8_t LED_BUILTIN = CORE_LED0_PIN;

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

from sketch\TFTpaint.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before '__extension__'

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before ')' token

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before '__extension__'

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t pin)

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t pin)

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t pin)

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before ')' token

#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )

^

C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'

static inline uint8_t digitalPinToTimer(uint8_t pin)

^

exit status 1
Error compiling.


===================================

I tried to copy source code for the "TFTLCD" sketch being compiled, but this forum wouldn't permit it as the post became too long (I don't see a way to attach a file here).
 
Under windows 8 the install helpfully cleared up an oddity with the automatic program and reboot process failing sometimes and needing a PC reboot to fix. Can also confirm that the helpful install error messages from not running as administrator, and trying to install while Arduino is open both work!

Do need to dig into why some of my third party libraries are triggering the 'do you want to update libraries' popup which should keep me amused for a bit.
 
GremlinWrangler, good name for this! I wish you would "dig around" and hopefully fix that annoying issue.

Best

Matadormac
 
Minor UI problem with Teensy Loader 1.27-beta2 Hovering over the 3 diagonal lines at the lower right of the loader window brings up a diagonal resize arrow cursor, but clicking and dragging does not resize the window. This was with Windows 7 and Arduino 1.6.7.
There may not be much reason to resize, but the text at the bottom of the default window size is cut short, so one might wish to temporarily expand it to read one time.

Edit: removed huge amount of debug data describing a self inflicted problem because I forgot to count pin 0 and my spi wires were off by 1 pin.
 
Last edited:
Somehow your copy of Arduino and Teensyduino got installed inside of Documents/Arduino. That's so very wrong.

Notice the full pathname in this error:

C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:825:88: error: 'void digitalWrite(uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

Recent versions of Arduino are supposed to detect this and show a warning message. Maybe that's not working?

In any case, please be aware that Arduino can NOT be installed into Documents/Arduino. That's where its data is supposed to be stored. If you install it there, lots of its own files get mistaken for libraries and all sorts of really strange problems happen.

To recover from this, first you're going to have to try to manually salvage any data you stored. Back up the whole mess (copy it somewhere else on your hard drive). Best to make an offline copy too. Then start with a blank Documents/Arduino. Install Arduino the normal way. It works fine in Program Files (x86)/Arduino, or in C:/arduino, or almost anywhere *EXCEPT* in Documents. Never put it in Documents!

Once you get things working again, you can try to sift through the backed-up mess and copy only your own sketches back into Documents/Arduino. You'll probably need to restart Arduino after each copy, since it scans that folder at startup.

If you never saw that warning about not running from Documents, I'd really like to understand why. Odds of being able to retrace all your steps are probably slim to none. But if you get any insight, please let me know? That message is supposed to appear and Arduino is supposed to refuse to run if it's installed into Documents.
 
How can the same file with the same number of bytes be reported as vastly different percentage used?

Arduino doesn't tell Teensy Loader which Teensy you've selected. It probably should, but doesn't. So before you've had the Teensy connected at least once, Teensy Loader has to guess (or it uses whatever state it had from before, which was a guess if no Teensy has ever been connected to your machine). Since there are 8 different Teensy models with 7 different memory sizes, odds are only 1 in 7 the initial guess will be correct.

Once Teensy Loader detects which physical board you have, the percentage utilization is properly updated for that board.

Perhaps Teensy Loader shouldn't show the percentage. Maybe it should give you some visual cue it has no idea (yet) which Teensy you're really using. I'm going to put this on my low priority TODO list. But to be honest, stuff on that list almost never gets done. There's too many much higher priority stuff to do!
 
SerMon on Win10 has been giving me poor if any performance in IDE 1.6.7. I'm glad I found this: Teensy-Qt Reading through that thread you can see how TYQT has developed and how it works and if it might suit your purposes similarly.

There is a link here to a release in process that I am using to great effect. Koromix has been very insightful in the design and good GUI development - and very responsive to my issues making it a great complement to the IDE and Teensy!

One of the features in that release is actually Integration to Arduino IDE where it will find one Teensy, or ask to select among them if you have multiple Teenys online. Documented here as "Integrate to Arduino". [There is an UNDO button as well that works to replace TeensyDuino Loader if needed] It will send code to a specific Teensy per instance of the IDE from the IDE - and the UI allows great flexibility in directing the code done with Verify also from the GUI. It also gives information on each active Teensy and allows multiple serial monitors one for each and the ability to 'Reset' a Teensy from its GUI.
 
Thanks for taking a look. The percentage thing isn't really a problem at all, makes complete sense after you explained it. I was just so sure that I had done everything right and had discovered a real problem, I thought the percentage might be a clue that lead someone to the root cause. As it turns out, I made a stupid mistake and failed to catch it after rechecking several times. I'm feeling quite foolish and apologize for wasting your time.
 
Confirmed working for me (except that I had to forward declare some functions I didn't have to before—https://github.com/arduino/Arduino/issues/4359)

At the above issue they've asked me to try the Arduino nightly to see if it's fixed there, but Teensyduino doesn't recognise it as a valid 1.6.7:

Code:
Directory: /Applications/Arduino-nightly.app/
  Checking Arduino 1.0.6:
    version: "Contents/Resources/Java/lib/version.txt"  file missing
    Does not match Arduino 1.0.6
  Checking Arduino 1.6.1:
    version: "Contents/Resources/Java/lib/version.txt"  file missing
    Does not match Arduino 1.6.1
  Checking Arduino 1.6.3:
    version: "Contents/Java/lib/version.txt"  incorrect version format
    Does not match Arduino 1.6.3
  Checking Arduino 1.6.5-r5:
    version: "Contents/Java/lib/version.txt"  incorrect version format
    Does not match Arduino 1.6.5-r5
  Checking Arduino 1.6.6:
    version: "Contents/Java/lib/version.txt"  incorrect version format
    Does not match Arduino 1.6.6
  Checking Arduino 1.6.7:
    version: "Contents/Java/lib/version.txt"  incorrect version format
    Does not match Arduino 1.6.7

The version.txt file seems to simply contain the string "nightly".

Any chance of either recognising that or providing an "I know what I'm doing, just humour me and pretend that you're compatible with this installation" switch in the installer?

Edit after re-reading what I just wrote above:

Manually changing version.txt to read "1.6.7" gets me slightly further:

Code:
Directory: /Applications/Arduino-nightly.app/
  Checking Arduino 1.0.6:
    version: "Contents/Resources/Java/lib/version.txt"  file missing
    Does not match Arduino 1.0.6
  Checking Arduino 1.6.1:
    version: "Contents/Resources/Java/lib/version.txt"  file missing
    Does not match Arduino 1.6.1
  Checking Arduino 1.6.3:
    version: "Contents/Java/lib/version.txt"  wrong version: 1.6.7    Does not match Arduino 1.6.3
  Checking Arduino 1.6.5-r5:
    version: "Contents/Java/lib/version.txt"  wrong version: 1.6.7    Does not match Arduino 1.6.5-r5
  Checking Arduino 1.6.6:
    version: "Contents/Java/lib/version.txt"  wrong version: 1.6.7    Does not match Arduino 1.6.6
  Checking Arduino 1.6.7:
    version: "Contents/Java/lib/version.txt"  version matches
    file: "Contents/MacOS/Arduino"  present
    file: "Contents/Info.plist"  present
    file: "Contents/Java/jssc-2.8.0.jar"  present
    java: "Contents/Java/pde.jar" object: "processing/app/Base.class" checksum mismatch, unsupported Arduino version
    Does not match Arduino 1.6.7
 
Last edited:
There are 2 ways you can try the latest unreleased Arduino...

The simple kludge way involves simply copying hardware/teensy and harware/tools from 1.6.7 into the "nightly" build. On older version of Arduino, this didn't work at all. With the latest, some stuff like the serial monitor will be broken, but you can at least try compiling code.

The really difficult way involves merging all my patches into the latest Arduino code. If you're lucky, you can use diff and patch. But if they've changed anything, patch will get rejects and you'll have to manually edit the Java source. Did I mention this is the really difficult way? (FWIW, I do this for every Arduino release....) Once this is done, you can rebuild the whole IDE if you use their build.xml, or just the JAR files if you use my hacked copy. If you build just the JAR files, copy them into the nightly build. If you rebuilt the whole IDE, then don't mess with the nightly copy since you have a completely new, freshly built IDE. Either way, copy hardware/teensy and hardware/tools.
 
For anyone else who may have had a similar issue.
I was running 1.6.7 "Nightly" and was not able to install the Teensyduino 1.27 beta getting similar errors to what ratkins got.

Removed and stepped back to 1.6.7 "Stable" and all worked perfectly.

I had forgotten I upgraded to the nightly after having some issues with the changes in the declare on the Stable release however even updating to the nightly did not resolve these.

All seems to be working well now thanks to @PaulStoffregen for spotting my mistake :)
 
I've released Teensyduino 1.27. Only very minor fixes where included between 1.27-beta2 and this final release.

The recent Ethernet library optimization is *not* included in 1.27.
 
Status
Not open for further replies.
Back
Top