Teensy 3.6 + UTFT (latest Versio 283)+ ILI9341 (16bit): Can't compile

Status
Not open for further replies.

AndreasFranke

New member
Hi,
just got my first teensy 3.6 a week ago and wanted to connect an ILI9341 (16bit) TFT display to it. But I run into some problems. The UTFT library installed by Teensyduino seems to be very old and does not support my display, so I installed the latest UTFT library from Rinky-Dink Electronics (http://www.rinkydinkelectronics.com/library.php?id=51) witch does support it, but all I get are errors if I try to compile it:

Code:
#include "UTFT.h"

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Error messages:

Code:
Arduino: 1.8.11 (Windows 10), TD: 1.50, Board: "Teensy 3.6, Serial + MIDI, 180 MHz, Faster, German"

In file included from Y:\Dokumente\Arduino\libraries\UTFT/UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\UTFT-Test\UTFT-Test.ino:1:

Y:\Dokumente\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined

 #define pgm_read_word(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215\pch\Arduino.h:6:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition

 #define pgm_read_word(addr) ({ \

 ^

In file included from Y:\Dokumente\Arduino\libraries\UTFT/UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\UTFT-Test\UTFT-Test.ino:1:

Y:\Dokumente\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined

 #define pgm_read_byte(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215\pch\Arduino.h:6:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition

 #define pgm_read_byte(addr) (*(const unsigned char *)(addr))

 ^

In file included from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

Y:\Dokumente\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined

 #define pgm_read_word(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215/pch/Arduino.h:6,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:166,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition

 #define pgm_read_word(addr) ({ \

 ^

In file included from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

Y:\Dokumente\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined

 #define pgm_read_byte(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215/pch/Arduino.h:6,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:166,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition

 #define pgm_read_byte(addr) (*(const unsigned char *)(addr))

 ^

Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"

   #error "Unsupported ARM MCU!"

    ^

Fehler beim Kompilieren für das Board Teensy 3.6.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Is there a way to get this UTFT version running, or is a working version available anywhere?

Sorry for this newbee questions... :eek:
 
Hi,
just got my first teensy 3.6 a week ago and wanted to connect an ILI9341 (16bit) TFT display to it. But I run into some problems. The UTFT library installed by Teensyduino seems to be very old and does not support my display, so I installed the latest UTFT library from Rinky-Dink Electronics (http://www.rinkydinkelectronics.com/library.php?id=51) witch does support it, but all I get are errors if I try to compile it:

Code:
#include "UTFT.h"

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Error messages:

Code:
Arduino: 1.8.11 (Windows 10), TD: 1.50, Board: "Teensy 3.6, Serial + MIDI, 180 MHz, Faster, German"

In file included from Y:\Dokumente\Arduino\libraries\UTFT/UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\UTFT-Test\UTFT-Test.ino:1:

Y:\Dokumente\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined

 #define pgm_read_word(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215\pch\Arduino.h:6:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition

 #define pgm_read_word(addr) ({ \

 ^

In file included from Y:\Dokumente\Arduino\libraries\UTFT/UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\UTFT-Test\UTFT-Test.ino:1:

Y:\Dokumente\Arduino\libraries\UTFT/hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined

 #define pgm_read_byte(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215\pch\Arduino.h:6:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition

 #define pgm_read_byte(addr) (*(const unsigned char *)(addr))

 ^

In file included from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

Y:\Dokumente\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:35:0: warning: "pgm_read_word" redefined

 #define pgm_read_word(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215/pch/Arduino.h:6,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:166,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:101:0: note: this is the location of the previous definition

 #define pgm_read_word(addr) ({ \

 ^

In file included from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:167:0,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

Y:\Dokumente\Arduino\libraries\UTFT\hardware/arm/HW_ARM_defines.h:36:0: warning: "pgm_read_byte" redefined

 #define pgm_read_byte(data) *data

 ^

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:41:0,

                 from C:\Users\andre\AppData\Local\Temp\arduino_build_500215/pch/Arduino.h:6,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.h:166,

                 from Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:40:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr/pgmspace.h:95:0: note: this is the location of the previous definition

 #define pgm_read_byte(addr) (*(const unsigned char *)(addr))

 ^

Y:\Dokumente\Arduino\libraries\UTFT\UTFT.cpp:85:4: error: #error "Unsupported ARM MCU!"

   #error "Unsupported ARM MCU!"

    ^

Fehler beim Kompilieren für das Board Teensy 3.6.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Is there a way to get this UTFT version running, or is a working version available anywhere?

Sorry for this newbee questions... :eek:

Hi Andreas, I got the same problem. How do you figure it out?
 
Status
Not open for further replies.
Back
Top