Teensyduino 1.28 Beta #2 Available

Status
Not open for further replies.
I found I had two copies of this active in Taskmanager! Install completed after I STOPPED <edit:not started> them.

What's the gateway do ?

td128b2iErr.PNG

Emptied Talkie and SerialFlash and NXPMotionSense from (sketchbook)\libraries . . . time to build . . .

<edit>: GOOD! :: I built the Talkie/SayQAcorn sketch and the 'Halloween Sounds' sketch and my NXP YPR>AP102 sketch just fine! And I have no active Teensy_Gateway.exe at this point - so I don't even know what started that. So my Beta2 and my Prop Shield tests out with those sketches.

I still can't build a working TeensyTransfer - I already bugged Frank about that.

NXP Fusion now moving yaw 12° every 15 seconds instead of 30, and it was being stable with YawPitchRoll as shown on my APA102 when I first wrote my sketch. Is that ongoing calibration?
 
Last edited:
Ok, I downloaded, and tried an example program using the Adafruit LED backpack library (clock_sevenseg_ds1307). Now, the Adafruit LED backpack library is not provided by PJRC, and I have my own local copy. After I updated my copy, I tried building it and I got some errors in the PROGMEM stuff, as well as a bunch of compiler warnings.

I downloaded the latest Adafruit_GFX library which is provided by PJRC and I got the following errors:

Code:
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'virtual size_t Adafruit_GFX::write(uint8_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:484:42: note: in expansion of macro 'pgm_read_pointer'
         GFXglyph *glyph = &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c2]);
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawChar(int16_t, int16_t, unsigned char, uint16_t, uint16_t, uint8_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:543:39: note: in expansion of macro 'pgm_read_pointer'
     GFXglyph *glyph  = &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
                                       ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:544:35: note: in expansion of macro 'pgm_read_pointer'
     uint8_t  *bitmap = (uint8_t *)pgm_read_pointer(&gfxFont->bitmap);
                                   ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:549:14: warning: unused variable 'xa' [-Wunused-variable]
              xa = pgm_read_byte(&glyph->xAdvance);
              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::getTextBounds(char*, int16_t, int16_t, int16_t*, int16_t*, uint16_t*, uint16_t*)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:700:36: note: in expansion of macro 'pgm_read_pointer'
             glyph = &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
                                    ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::getTextBounds(const __FlashStringHelper*, int16_t, int16_t, int16_t*, int16_t*, uint16_t*, uint16_t*)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:789:36: note: in expansion of macro 'pgm_read_pointer'
             glyph = &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
                                    ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:375:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(i & 7) byte <<= 1;
                           ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:393:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(i & 7) byte <<= 1;
                           ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:410:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(i & 7) byte <<= 1;
                           ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:426:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(i & 7) byte <<= 1;
                           ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawXBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:445:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(i & 7) byte >>= 1;
                           ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawChar(int16_t, int16_t, unsigned char, uint16_t, uint16_t, uint8_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:583:9: warning: 'bits' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if(bits & 0x80) {
         ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:587:47: warning: 'yo16' may be used uninitialized in this function [-Wmaybe-uninitialized]
             fillRect(x+(xo16+xx)*size, y+(yo16+yy)*size, size, size, color);
                                               ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:553:14: warning: 'xo16' may be used uninitialized in this function [-Wmaybe-uninitialized]
     int16_t  xo16, yo16;
              ^

After looking at the warnings, I wondered if you had not synched up the Adafruit_GFX library, and it looks like they had done some changes a month or so ago. The changes are:

Code:
Comparing ../../teensy/hardware/teensy/avr/libraries/Adafruit_GFX 
  absent:                   README.md            ::::::
  differ:                   Adafruit_GFX.cpp     
  differ:                   library.properties   
Comparing ../../teensy/hardware/teensy/avr/libraries/Adafruit_GFX/Fonts 
  absent:                   TomThumb.h           ::::::
Comparing ../../teensy/hardware/teensy/avr/libraries/Adafruit_GFX/fontconvert 
  differ:                   Makefile             
  differ:                   fontconvert.c

I installed these files in the Teensy release directory, and I still get a bunch of warnings, but at least the following warnings are now not present:

Code:
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'virtual size_t Adafruit_GFX::write(uint8_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:484:42: note: in expansion of macro 'pgm_read_pointer'
         GFXglyph *glyph = &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c2]);
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp: In member function 'void Adafruit_GFX::drawChar(int16_t, int16_t, unsigned char, uint16_t, uint16_t, uint8_t)':
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:543:39: note: in expansion of macro 'pgm_read_pointer'
     GFXglyph *glyph  = &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
                                       ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:44:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  #define pgm_read_word(addr) (*(const unsigned short *)(addr))
                                                              ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:45:42: note: in expansion of macro 'pgm_read_word'
  #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
                                          ^
/rock/shared/arduino/teensy-1.28-beta2-1.6.8/hardware/teensy/avr/libraries/Adafruit_GFX/Adafruit_GFX.cpp:544:35: note: in expansion of macro 'pgm_read_pointer'
     uint8_t  *bitmap = (uint8_t *)pgm_read_pointer(&gfxFont->bitmap);
                                   ^
 
I still can't build a working TeensyTransfer

Hm, i tried, and it is still not reproducable for me.. it works flawlessly..(?!?)
Can anyone else pls. confirm this issue with TD 1.28 Beta 2 and the teensytransfer example sketch ?

Tim, can you please send me the output of the compilation-messages-window ?
And perhaps check which libraries are in your documents\arduino\ibraries folder!
 
Hm, i tried, and it is still not reproducable for me.. it works flawlessly..(?!?)
Can anyone else pls. confirm this issue with TD 1.28 Beta 2 and the teensytransfer example sketch ?
I just downloaded it from github and it compiled fine (after I choose RAW USB)

Edit forgot to mention: windows 10 64 bit, Arduino 1.6.8 and Beta 2
 
teensytransfer example sketch compiled for me on Win 7 x64 Pro with Arduino 1.6.8 and TD beta 2

Pete
 
Thank you.. a last question : if you have a Prop Shield or Audio Shield with Flash: Does "teensytransfer -i" work for you ?
 
So far I unziped the exe from the extras folder and when I run it I see:
Code:
C:\Users\Kurt\Documents\Arduino\libraries\TeensyTransfer\extras>teensytransfer.exe -i
teensytransfer: Communication error
 
I compiled and downloaded the sketch for 96mhz optimized with RAW usb. What settings are you using.
 
I'v tested it with 24..120MHZ optimized and un-optimized. Does it work if you use the hex-file ?
It should print some info about the flash chip

..but I don't want to spam this thread with this topic!
 
Nope was not clear in the sketch, comment looked like the lines below were unneeded... But once I uncommented the one it now works... :D
 
With SerialFlash.begin selected, I get:
Code:
ID    : EF 40 17
Serial: D1 65 38 25 47 41 0A 2B
Size  : 8388608 Bytes

+edit: But when I try to send a file I get Communication error.
Ooops. Forgot to erase it first. All is well.

Pete
 
Last edited:
Great! Thank you both.. i fixed that comment (i hope ?)
is
Code:
//remove unneeded / not connected devices here:
better ? (I've always problems with german->english :)
 
Hi Frank: The german->english isn't so much of a problem. But I comment something like that in a way that makes the comment stand out a bit more so that I actually take notice of it :) I also start the comment in column one.
Code:
//>>> REMOVE unneeded / not connected devices !!
similarly:
Code:
//>>> UNCOMMENT these if using Teensy audio shield

Pete
 
Status
Not open for further replies.
Back
Top