Teensyduino 1.41 Beta #1

Status
Not open for further replies.

Paul

Administrator
Staff member
Here is a first beta test for Teensyduino 1.41.


Old beta download links removed. Please use the latest version:
https://www.pjrc.com/teensy/td_download.html


Changes since Teensyduino 1.40:

Add IntervalTimer update()
Ethernet fix socket receive state caching bug
Ethernet improve handling of unexpected remote server disconnect
SD fix timeouts
SPI pin changes kept in sync with AVR SPI emulation
SPI avoid interfere with pin 45
Wire force recovery from stuck slave devices
Wire improve detection of arbitration loss to other bus masters
Add AudioConnection disconnect() (thanks b0rg3rt)
Update platform.txt for compatibility with Arduino 1.9 beta
Fix serial stall if higher than maximum baud rate configured
Improve delayMicroseconds on Teensy 2.0 (Graham)
Fix SERIAL_8N2 mode on Teensy LC
Update sample Makefile
Add abort() function, needed for Pozyx library
Update keywords for Serial formats & USB Keyboard special keys
Improve AVR SPI register emulation, speed bits
Fix tone() issue when 0 Hz requested, minimum is 1 Hz
Fix Teensy LC DMAChannel bug (thanks kbob)
Audio add ADAT output (thanks Ernstjan Freriks)
Audio fix RMS analysis when no data
Audio ToneSweep improvements (thanks Pio)
Audio design tool custom name bug fixed (thanks neurofun)
Audio modulated sine amplitude when no mod signal fix (thanks neurofun)
Audio library documentation updated, several minor errors fixed
FastLED updated to support WS2812Serial
Time library minor updates & fixes
i2c_t3 library updated
OctoWS2811 fix on Teensy 3.5
OctoWS2811 remove unnecessary delay
OctoWS2811 improve setPixel speed (thanks sgorsh)
USBHost_t36 support for CDC-ACM, PL2303 & CH341 serial (thanks KurtE)
USBHost_t36 support for RawHID (thanks KurtE)
USBHost_t36 support for Xbox One controller (thanks KurtE)
USBHost_t36 improve keyboard & joystick support (thanks KurtE)
USBHost_t36 fix USB MIDI fast data input
USBHost_t36 Ant+ wireless adaptor support (adapted from Michael McElligott)
USBHost_t36 access to device ID and name (thanks KurtE)
XPT2046_Touchscreen detect touch by interrupts (thanks Donziboy2 & Defragster)
 
I tried downloading the new build (Thanks!)

It appears like there is an issue at least on my Windows 10 64 machine on being able to program a Teensy 3.6. I tried two different programs and two different Teensy 3.6 boards on different com ports.

FYI - I have McAfee installed, currently with RTS turned off.

Code:
Using precompiled core
Linking everything together...
"D:\arduino-1.8.5\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1513150788 "-TD:\arduino-1.8.5\hardware\teensy\avr\cores\teensy3/mk66fx1m0.ld" -lstdc++  -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -o "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.elf" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431\sketch\spi_master_dma.ino.cpp.o" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431\libraries\SPI\SPI.cpp.o" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/..\arduino_cache_824008\core\core_teensy_avr_teensy36_usb_serial,speed_180,opt_o2std,keys_en-us_26fc6a7c42c0d925f5774547beef0285.a" "-LC:\Users\kurte\AppData\Local\Temp\arduino_build_105431" -larm_cortexM4lf_math -lm
"D:\arduino-1.8.5\hardware\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.elf" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.eep"
"D:\arduino-1.8.5\hardware\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.elf" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.hex"
"D:\arduino-1.8.5\hardware\teensy/../tools/stdout_redirect" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.lst" "D:\arduino-1.8.5\hardware\teensy/../tools/arm/bin/arm-none-eabi-objdump" -d -S -C "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.elf"
"D:\arduino-1.8.5\hardware\teensy/../tools/stdout_redirect" "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.sym" "D:\arduino-1.8.5\hardware\teensy/../tools/arm/bin/arm-none-eabi-objdump" -t -C "C:\Users\kurte\AppData\Local\Temp\arduino_build_105431/spi_master_dma.ino.elf"
"D:\arduino-1.8.5\hardware\teensy/../tools/teensy_post_compile" "-file=spi_master_dma.ino" "-path=C:\Users\kurte\AppData\Local\Temp\arduino_build_105431" "-tools=D:\arduino-1.8.5\hardware\teensy/../tools/" "-board=TEENSY36"
Multiple libraries were found for "SPI.h"
 Used: C:\Users\kurte\Documents\Arduino\libraries\SPI
 Not used: D:\arduino-1.8.5\hardware\teensy\avr\libraries\SPI
Using library SPI at version 1.0 in folder: C:\Users\kurte\Documents\Arduino\libraries\SPI 
Sketch uses 35696 bytes (3%) of program storage space. Maximum is 1048576 bytes.
Global variables use 5452 bytes (2%) of dynamic memory, leaving 256692 bytes for local variables. Maximum is 262144 bytes.
D:\arduino-1.8.5\hardware\teensy/../tools/teensy_post_compile -test -file=spi_master_dma.ino -path=C:\Users\kurte\AppData\Local\Temp\arduino_build_105431 -tools=D:\arduino-1.8.5\hardware\teensy/../tools -board=TEENSY36 -reboot 
Found serial '\\.\COM4', but unable to open for reboot request 
  Windows Error Info: Access is denied. 
  more ideas... https://forum.pjrc.com/threads/40632-Teensyduino-USB-issue?p=126667&viewfull=1#post126667 
Teensy did not respond to a USB-based request to enter program mode. 
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
As you can tell this is a 1.8.5 arduino install (installed over top of previous Teensy builds).

Pressing the program button appears to properly run the update.

Edit: Appears to work fine on my UP board running Ubuntu 16.04 64 bit. Arduino 1.8.5
 
Last edited:
Installed 1.41 Beta1 - no problems on prior IDE 1.85 with IDE 1.90 build engine. Latest Win 10 1709.#.125 update.

<edit>: Note Verify build with 1.9 build engine about 40 seconds {with esc warnings} instead of ~2 minutes for : ...\Audio\examples\Analysis\WaterfallSpectrum

Using an IDE 1.85 with build engine from IDE 1.90 {bld 25} works with TD 1.41 Beta 1.

Still generates spurious errors when all functions are not forward prototyped.
Compiling libraries...T:\tCode\Temp\b190_BadEsc\b190_BadEsc.ino:12:9: warning: unknown escape sequence: '\T'
delay(200); // regulate output speed
^
Compiling core...T:\tCodeTemp190_BadEsc190_BadEsc.ino:7:10: warning: unknown escape sequence: '\T'
T:\tCodeTemp190_BadEsc190_BadEsc.ino:12:10: warning: unknown escape sequence: '\T'
T:\tCodeTemp190_BadEsc190_BadEsc.ino:17:9: warning: unknown escape sequence: '\T'

Simple Sketch - Warnings go away when prototype uncommented. Some Sketches fail to build not just give warnings like this.
Code:
#define qBlink() (digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN) ))

// TD 1.41 includes platform.txt changes to support IDE 1.90 parallel build > [URL="https://forum.pjrc.com/threads/47213-Arduino-1-9-has-multi-cpu-parallel-build"]https://forum.pjrc.com/threads/47213-Arduino-1-9-has-multi-cpu-parallel-build[/URL]

[B]//void boo();  // Uncomment this prototype to remove warnings from using IDE 1.90 build engine on IDE 1.85[/B]

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  boo();
}

void loop() {
  delay(200);  // regulate output speed
  qBlink();
}

void boo() {
  return;
}

<edit2> : Updated parallel IDE 1.85 {not 1.90 bld } install no problems
 
Last edited:
What is that about?

It's this issue. Hopefully now fixed. But I'm not a musician, nor really able to make much real use of MIDI. I'm depending on feedback from those who really can...

... with 1.9 build engine ...Still generates spurious errors when all functions are not forward prototyped.

This is an Arduino 1.9-beta bug. The best we can do it report it to Arduino. Martino did flag it as a bug just a few days ago. That's a very good sign they'll fix it sometime "soon". Teensyduino can't fix it, and unless the Arduino devs do something really strange and unexpected, that part of Arduino is an area I have no intention of hacking.

As I asked on another thread, have you been able to find any programs where this bug results in an actual compiler error? Really, what I'm saying is, if the consequence is only compiler warnings, please stop bringing this issue up. It's already been properly reported and confirmed by Arduino. They will almost certainly fix it soon. Even a compile error case is probably redundant, but would be nice for testing when they get this fixed.
 
It appears like there is an issue at least on my Windows 10 64 machine on being able to program a Teensy 3.6. I tried two different programs and two different Teensy 3.6 boards on different com ports.

I tested just now on Windows 10 64 bit, using 1.41-beta1 installed over the top of 1.40 on Arduino 1.8.5. It auto-uploads properly, at least on my test machine.

Code:
Found serial '\\.\COM4', but unable to open for reboot request 
  Windows Error Info: Access is denied. 
  more ideas... https://forum.pjrc.com/threads/40632-Teensyduino-USB-issue?p=126667&viewfull=1#post126667 
Teensy did not respond to a USB-based request to enter program mode. 
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.

COM4 really is the port for your Teensy 3.6, right? In other words, is it choosing the correct port but then not getting access, or is it mistaking COM4 for a Teensy when it's really something else?
 
<EDIT>: Paul pointed me to a pre-release binary for the new builder as fixed and these warnings are GONE!

For anyone looking to try the new Parallel build noted above - Paul has noted on that thread the Arduino Dev's have an expected fix coming through the IDE 1.90 BETA path - will be in Build 28 or after (of course build # is packed in the ZIP)

... just posted above super simple example so that those inspired to try it as a included 1.41 FEATURE would not be surprised, and to provide what may be a work around {provide prototypes} for those that do attempt it because it does provide a worthy build speed increase.
 
Last edited:
I tested just now on Windows 10 64 bit, using 1.41-beta1 installed over the top of 1.40 on Arduino 1.8.5. It auto-uploads properly, at least on my test machine.

Code:
Found serial '\\.\COM4', but unable to open for reboot request 
  Windows Error Info: Access is denied. 
  more ideas... https://forum.pjrc.com/threads/40632-Teensyduino-USB-issue?p=126667&viewfull=1#post126667 
Teensy did not respond to a USB-based request to enter program mode. 
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.

COM4 really is the port for your Teensy 3.6, right? In other words, is it choosing the correct port but then not getting access, or is it mistaking COM4 for a Teensy when it's really something else?
:eek: - Problem solved. I still had a TyCommander window open :eek: Once I closed this window, it worked :D
 
Status
Not open for further replies.
Back
Top