PDA

View Full Version : Teensyduino 1.28 Beta #2 Available



Paul
04-06-2016, 04:02 PM
Here is a second beta test for Teensyduino 1.28.


Edit: old beta test linkes removed. Full non-beta release is here:
http://www.pjrc.com/teensy/td_download.html

defragster
04-07-2016, 05:27 AM
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 ?

6948

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?

MichaelMeissner
04-07-2016, 05:31 AM
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:



/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:



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:



/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);
^

Frank B
04-07-2016, 09:35 AM
I had the same effect - teensy gateway was running (?)

Frank B
04-07-2016, 03:27 PM
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!

KurtE
04-07-2016, 03:59 PM
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

el_supremo
04-07-2016, 05:12 PM
teensytransfer example sketch compiled for me on Win 7 x64 Pro with Arduino 1.6.8 and TD beta 2

Pete

Frank B
04-07-2016, 05:24 PM
Thank you.. a last question : if you have a Prop Shield or Audio Shield with Flash: Does "teensytransfer -i" work for you ?

KurtE
04-07-2016, 06:03 PM
So far I unziped the exe from the extras folder and when I run it I see:

C:\Users\Kurt\Documents\Arduino\libraries\TeensyTr ansfer\extras>teensytransfer.exe -i
teensytransfer: Communication error

Frank B
04-07-2016, 06:07 PM
ok.. thanks.. wonder what is different with my installation..

KurtE
04-07-2016, 06:11 PM
I compiled and downloaded the sketch for 96mhz optimized with RAW usb. What settings are you using.

Frank B
04-07-2016, 06:14 PM
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!

Frank B
04-07-2016, 06:31 PM
ooops... ehm.. have you enabled the line " SerialFlash.begin(FlashChipSelect);" in the example ?

KurtE
04-07-2016, 06:43 PM
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

el_supremo
04-07-2016, 06:45 PM
With SerialFlash.begin selected, I get:

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

Frank B
04-07-2016, 06:51 PM
Great! Thank you both.. i fixed that comment (i hope ?)
is
//remove unneeded / not connected devices here: better ? (I've always problems with german->english :)

el_supremo
04-07-2016, 06:59 PM
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.

//>>> REMOVE unneeded / not connected devices !!
similarly:

//>>> UNCOMMENT these if using Teensy audio shield

Pete

Frank B
04-07-2016, 07:11 PM
Thank you. ( Update (https://github.com/FrankBoesing/TeensyTransfer/commit/0283d07855067369ce84a614d7301a482d3ebbcd) )

Sorry Paul, for hijacking this thread.

Paul
04-10-2016, 09:30 PM
Teensyduino 1.28 has been released.

http://www.pjrc.com/teensy/td_download.html

I'm closing this beta test thread.