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

Thread: Teensyduino 1.38 Beta #4

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

    Teensyduino 1.38 Beta #4

    Here is a fourth beta test for Teensyduino 1.38.


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


    Changes since Teensyduino 1.38-beta3

    Fix TeensyThreads conflict with MillisTimer
    Remove 2.5 second wait in Serial.begin
    USBHost_t36 mouser driver (wwatson)
    Update Adafruit_CC3000, AccelStepper, Adafruit_GFX, Adafruit_SSD1306, FastLED, IRremote, Keypad, MFRC522, SoftPWM, SPIFlash

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,768
    Works like a charm - yes, it's better without 2.5 second wait.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,686
    I'm considering wrapping up 1.38 on Sunday or Monday (August 28).

    There's a pretty long list of stuff I was hoping to get into 1.38 which isn't ready... so maybe 1.39 will come early?

    But right now, can anyone see any major issues that ought to hold up releasing 1.38?

  4. #4
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,768
    One very minor thing - but I think the reason is very difficult to find:
    If my teensy 3.6 is connected to a powered hub - and I switch the hub on to power the teensy - but not the computer (=still switched off!) , the teensy hangs when i use the usb-host library (keyboard).
    If i use a usb-batterypack instead, it's ok. Sounds a bit crazy, I know..

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,088
    Frank - using my K66 PROTO and MSFT wireless I don't see it with the sketch below when PC OFF and powered up on hub (or batterypack)?
    Using IDE 1.8.3 and TD_1.38b4 on my windows machine with powered hub ( tried two ) { note both hubs are getting USB power even when hub power is unplugged on this machine with machine off}

    This is the USBHost TEST sketch with midi removed - left in other bits as shown - whatever they do. Does it repro your scenario/issue?

    T_3.6 starts - turns on LED_BUILTIN:
    > No USB in 1st 4 seconds :: waits 4 seconds in setup() before blink
    > With USB before 4 secs :: it blinks on the second
    > If blinking - a keystroke toggles the LED.
    [ tested F_CPU=240/F_BUS=120 ]

    Code:
    // Simple test of USB Host
    //  https://forum.pjrc.com/threads/46011-Teensyduino-1-38-Beta-4?p=151921&viewfull=1#post151921
    // This example is in the public domain
    
    #include "USBHost_t36.h"
    
    USBHost myusb;
    USBHub hub1(myusb);
    USBHub hub2(myusb);
    USBHub hub3(myusb);
    KeyboardController keyboard1(myusb);
    KeyboardController keyboard2(myusb);
    
    void setup()
    {
      pinMode( LED_BUILTIN, OUTPUT );
      digitalWriteFast( LED_BUILTIN, 1 );
      while (!Serial && millis() < 4000) ; // wait for Arduino Serial Monitor
      Serial.println("USB Host Testing");
      myusb.begin();
      keyboard1.attachPress(OnPress);
      keyboard2.attachPress(OnPress);
    }
    
    elapsedMillis tBlink;
    bool tState = true;
    void loop()
    {
      myusb.Task();
      if ( tBlink > 1000) {
        tBlink -= 1000;
        digitalWriteFast( LED_BUILTIN, tState = !tState );
      }
    }
    
    
    void OnPress(int key)
    {
      digitalWriteFast( LED_BUILTIN, tState = !tState );
      Serial.print("key '");
      Serial.print((char)key);
      Serial.print("'  ");
      Serial.println(key);
    }

  6. #6
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,941
    Been using it for awhile now and not have any problems with it. Don't use it the same way as some but have not had any issues.

  7. #7
    Junior Member
    Join Date
    Aug 2017
    Posts
    6
    I've just downloaded it for little project I'm working on. I'll be using it with Visual Studio 2015 and Visual Micro. Anyone had any issues with this combo?

  8. #8
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,088
    Quote Originally Posted by PaulStoffregen View Post
    I'm considering wrapping up 1.38 on Sunday or Monday (August 28).

    There's a pretty long list of stuff I was hoping to get into 1.38 which isn't ready... so maybe 1.39 will come early?

    But right now, can anyone see any major issues that ought to hold up releasing 1.38?
    I got an email from FrankB - he tried code from post #5 and it works on his system for USB_HOST. So it is something else in the system as he has it for Teensy64.

  9. #9
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,768
    @defragster: It's not important and a very minor issue. Nevertheless there seems to be a special condition and something crashes. I'll look later, maybe...
    Edit: You have access to the sourcecode

  10. #10
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,088
    Quote Originally Posted by Frank B View Post
    @defragster: It's not important and a very minor issue. Nevertheless there seems to be a special condition and something crashes. I'll look later, maybe...
    Just wanted Paul to know the odd behavior doesn't seem to be in the included HOST code.

  11. #11
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,768
    I'm not sure about that. But maybe the reason is the old fork (~ first release), I use
    Or it's just my USB-hub.

Posting Permissions

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