Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 10 of 10

Thread: Teensyduino 1.41 Beta #1

  1. #1
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    294

    Teensyduino 1.41 Beta #1

    Here is a first beta test for Teensyduino 1.41.

    Linux 32 bit:
    https://www.pjrc.com/teensy/td_141-b...nstall.linux32

    Linux 64 bit:
    https://www.pjrc.com/teensy/td_141-b...nstall.linux64

    Linux ARM:
    https://www.pjrc.com/teensy/td_141-b...stall.linuxarm

    Mac OS-X:
    https://www.pjrc.com/teensy/td_141-b...inoInstall.dmg

    Windows:
    https://www.pjrc.com/teensy/td_141-b...inoInstall.exe


    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)

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,534
    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 by KurtE; 12-13-2017 at 05:04 PM.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,102
    Quote Originally Posted by Paul View Post
    USBHost_t36 fix USB MIDI fast data input
    What is that about? I looked on the issues list but didn't see anything about fast data.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,441
    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 > https://forum.pjrc.com/threads/47213...parallel-build
    
    //void boo();  // Uncomment this prototype to remove warnings from using IDE 1.90 build engine on IDE 1.85
    
    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 by defragster; 12-13-2017 at 06:54 PM. Reason: 1.90 Speedup Impressive : 8 cores hit 100%

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    17,624
    Quote Originally Posted by Nantonos View Post
    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...

    Quote Originally Posted by defragster View Post
    ... 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.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    17,624
    Quote Originally Posted by KurtE View Post
    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?

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,441
    <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 by defragster; 12-13-2017 at 10:32 PM.

  8. #8
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,534
    Quote Originally Posted by PaulStoffregen View Post
    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?
    - Problem solved. I still had a TyCommander window open Once I closed this window, it worked

  9. #9
    Senior Member
    Join Date
    Aug 2014
    Posts
    138
    what is Add IntervalTimer update() ?

  10. #10
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,441
    Quote Originally Posted by zachtos View Post
    what is Add IntervalTimer update() ?
    Web doc pending ... See: ... /threads/45518-IntervalTimer-UpdateInterval

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •