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

Thread: Teensyduino 1.22 Released

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

    Teensyduino 1.22 Released

    Teensyduino 1.22 has been officially released.

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

    Here are the changes since version 1.21:


    • Support Arduino 1.6.2 and 1.6.3
    • Update EEPROM and OneWire libraries
    • Add ADC and i2c_t3 libraries
    • Fix USB flightsim on Teensy-LC
    • Fix SPI.transfer16 & support SPI1 on Teensy-LC
    • Fix String(unsigned char) on Teensy 2.0
    • Add Serial.availableForWrite() on Teensy 2.0
    • Fix printing of long integers on Teensy 2.0
    • Improve USBtoSerial example
    • Fix harmless but annoying compiler warnings

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,704
    Looking good for what I do on Windows.

    I found simpler cases showing TeensyDuino not 'resetting' after error that can frustrate the system:
    3.1 & LC online: Verify code for LC
    LC Button : Okay, programmed
    3.1 Button : bad : wrong MCU < Leaves TeensyDuino in odd state

    IDE Verify [no change in 'Board' last compile was LC]
    TeensyDuino Auto PROGRAMS given a Verify to the same 3.1 device with out Button.

    Verify should never Auto Upload correct? After the Wrong MCU error I'd expect it to return to 'normal'.
    Same happens with only LC online:
    Verify for 3.1, push LC button: MCU match error
    Click Verify and after compile TeensyDuino attempts programming without prompting.
    {optional} - connect 3.1 and Verify - it goes Auto to LC: MCU match error
    {optional} - change to Board:LC and Verify - it goes Auto to LC and works

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,704
    I've seen the 'duplicate libs'* break in my compile twice now. It was triggered when I had a private build in my sketchbook\libraries folder.

    Does having a private build require working in or removing the installed directory?

    Once was a leftover copy of i2c_t3 that came out in 1.22, the other was downloading two variants of the maniacbug/RF24. In this case I just deleted an offending copy.

    * New By Design feature <edit>
    Last edited by defragster; 04-08-2015 at 06:58 PM.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,958
    Are you using Arduino 1.6.3 yet? If so, are you seeing the message to advise you when Arduino detects duplicate libraries?

    https://github.com/arduino/Arduino/pull/2850

    It was merged into Arduino 1.6.3, so you won't see this with version 1.6.2 or older.

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,704
    Quote Originally Posted by defragster View Post
    Does having a private build require working in or removing the installed directory?

    * New By Design feature <edit>
    Indeed v1.6.3 - by design. What is the way around to not show/create a duplicate library? Editing the install libraries in place has them lost on updating/reinstalling, and corrupts the source for comparison/reversion, it seemed that the sketchbook copy might take precedence on prior versions so that seemed the way to do it.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,958
    Yes, the sketchbook libraries folder is always supposed to override other locations.

    The duplicate message can't be turned off. Perhaps in a future version is might be changed to only appear when you get a compile error. Maybe. I guess it'll depend on whether there's a huge outcry of annoyance.

    The message is important. When you override another library, odds are very likely it will later break when other stuff in the core library or other libraries is uses changes. Usually that happens much later, long after you've forgotten about installing a copy in your sketchbook libraries folder. Then you'll be faced with incomprehensible compile errors about complex stuff deep within the libraries. The message is there to alert you to the fact 2 copies of the library exist in your install, and Arduino had to pick one.

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,704
    Indeed - this would make evident misplacing folders like I did before with sketchbook. Maybe a #define PRIVATE_BUILD flag - your test could see that but might not get it to the linker with the right sources. I didn't follow through as I was not looking for that battle so deleting was the right course in this case.

    This was to be an 'atta boy' confirmation that it is catching multiple cases in use, just wondered about a clean workaround - seems that would be to remove the secondary library, even if that is in the install tree.

  8. #8
    Junior Member
    Join Date
    Jan 2014
    Posts
    10
    Did you forgot to remove some debug ?

    On 1.22 / OctoWS2811

    Code:
    void OctoWS2811::isr(void)
    {
            Serial1.print(".");   <==============
            //Serial1.println(dma3.CFG->DCR, HEX);
            //Serial1.print(dma3.CFG->DSR_BCR > 24, HEX);
            dma3.clearInterrupt();
            //Serial1.print("*");
            update_completed_at = micros();
            update_in_progress = 0;
    }

  9. #9
    Senior Member Epyon's Avatar
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    443
    And yet another Arduino version .

  10. #10
    Junior Member
    Join Date
    Apr 2015
    Posts
    8
    Where can we find older versions of Teensyduino, specifically version 1.22? That appears to be what the latest version of embedXcode needs.

    Thanks!

  11. #11

  12. #12
    Junior Member
    Join Date
    Apr 2015
    Posts
    8
    Thanks Paul. The Version number in the Info window for that file is 1.21. And I downloaded the latest version of embedXcode and it works with Teensyduino 1.24.

Posting Permissions

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