Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 25 of 87

Thread: Teensyduino 1.31 Beta #1 Available

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

    Teensyduino 1.31 Beta #1 Available

    Here is a first beta test for Teensyduino 1.31.


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



    The only change since 1.30 is support for Arduino 1.6.12.

    Arduino 1.6.12 has a faster build process (caches include dependencies) and supports Mac OS-X Sierra.

  2. #2
    Junior Member oqibidipo's Avatar
    Join Date
    Mar 2016
    Location
    Finland
    Posts
    1
    Quote Originally Posted by Paul View Post
    supports Mac OS-X Sierra.
    *ahem* macOS Sierra

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    939
    So far I've only tested the vocoder with about 600kB of flash. It uploaded and works.

    Pete

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,755
    I went to IDE 1.6.12 and TD 1.31 no problem on my Win10, so far just FASTLEDS on the T_3.6

  5. #5
    Senior Member Wozzy's Avatar
    Join Date
    Jan 2013
    Location
    Philadelphia, Pennsylvania USA
    Posts
    341
    I compiled encoder lib, bounce and ili9341-t3. I still had to apply KurtEs hacks to ILI9341_t3.cpp and avr_emulation.h to be able to use pin 27 as alternate SCLK(0). Otherwise all compiled fine on WIN10-64.
    Last edited by Wozzy; 09-22-2016 at 10:09 AM.

  6. #6
    Junior Member
    Join Date
    Sep 2016
    Posts
    2
    Hi, I tried to upload the code to a teensy 3.1 and it builds but teensy loader doesn't detect the teensy, I tried to push the teensy program button. I have used dmesg in terminal and it says:

    AMFI: allowing exception handler for 'Arduino' (7295) because the process is not restricted.

    Also, in the port selection menu, the teensy doesn't appear. I'm using Arduino 1.6.12 with teensyduino 1.31-beta 1 in macOs Sierra.

    Edit: I have tried "system_profiler SPUSBDataType" on terminal and the output doesn't change when I plug the teensy.
    Last edited by v01den; 09-22-2016 at 10:17 PM.

  7. #7
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    Quote Originally Posted by Wozzy View Post
    I compiled encoder lib, bounce and ili9341-t3. I still had to apply KurtEs hacks to ILI9341_t3.cpp and avr_emulation.h to be able to use pin 27 as alternate SCLK(0). Otherwise all compiled fine on WIN10-64.
    I would not necessarily call them hacks, they are simply changes to add those pins as valid options. In some cases it made the code slightly more complicated in that, before there were only two options for MOSI or MISO or SCLK, now there are three. So the code that encoded this can no longer use 1 bit to say which one you are using, now it requires 2 bits per each...

    There are still outstanding Pull requests to fix this which include:
    Cores: https://github.com/PaulStoffregen/cores/pull/173
    ILI9341_t3: https://github.com/PaulStoffregen/ILI9341_t3/pull/31
    SPI: https://github.com/PaulStoffregen/SPI/pull/20 (actually not sure if Wozzy used this one, added another valid CS pin)

    I have now downloaded 1.6.12 and installed this beta and used winmerge to verify that the only things different in my two trees is the above changes, which I then reapplied.

    Note: One change that I see made this beta was the fix to core_pins.h which fixed the problems with the count of Analog pins and PWM pins.

    Kurt

  8. #8
    Senior Member Wozzy's Avatar
    Join Date
    Jan 2013
    Location
    Philadelphia, Pennsylvania USA
    Posts
    341
    Quote Originally Posted by KurtE View Post
    I would not necessarily call them hacks, they are simply changes to add those pins as valid options.
    Kurt
    KurtE,
    I agree... Sorry, poor choice of words on my part.

  9. #9
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    Quote Originally Posted by Wozzy View Post
    KurtE,
    I agree... Sorry, poor choice of words on my part.
    No problem, I was just pulling your leg

  10. #10
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    Quote Originally Posted by v01den View Post
    Also, in the port selection menu, the teensy doesn't appear.
    Can you look at Arduino > About to double check the version of Arduino and Teensyduino?

    If no Teensyduino version is shown, seems likely Teensyduino didn't actually get installed to this copy of Arduino. Maybe try running the installer again? Perhaps double check the location of Arduino before installing. During install, the "?" button can show you how the installer is detecting Arduino. Maybe check that it's really seeing 1.6.12?

  11. #11
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    Does anyone notice a speed difference when building the audio lib, or other stuff?

  12. #12
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,755
    Odd - my 1.6.11 won't complete a build of audio memoryandpu test. I must have munged a file - it is dying in SD . . . building for T_3.6. Will clean up and try again later for T_3.2.

    Don't have time to look - I wonder if one is building with a local sketchbook/lib and the other is not?

    I did see the error 5 seconds faster on my SSD copy during Verify build at 26 versus 31 seconds.

    On my SSD 1.6.12 it completed in 33 seconds.

  13. #13
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,755
    There is a difference in the INCLUDE indications? IDE 1.6.11 is picking up SDFAT from sketchbook\libraries and 1.6.12 is not using that at all? And 1.6.11 is giving me this batch of errors. Same machine - same sketch - Windows 10.

    Notes:
    SKETCH - unchanged :: C:\arduino-1.6.12\hardware\teensy\avr\libraries\Audio\example s\MemoryAndCpuUsage
    That SDFAT I think is the BETA_T_3.6 thread version.

    IDE 1.6.11::
    Code:
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:25:57: error: 'void (* SdFile::dateTime_)(uint16_t*, uint16_t*)' is not a static member of 'class SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:33:28: error: no 'uint8_t SdFile::addCluster()' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:46:35: error: no 'uint8_t SdFile::addDirCluster()' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:61:44: error: no 'dir_t* SdFile::cacheDirEntry(uint8_t)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:74:27: error: no 'uint8_t SdFile::close()' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:91:71: error: no 'uint8_t SdFile::contiguousRange(uint32_t*, uint32_t*)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:130:44: error: no 'uint8_t SdFile::createContiguous(SdFile*, const char*, uint32_t)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:158:36: error: no 'uint8_t SdFile::dirEntry(dir_t*)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:178:50: error: no 'void SdFile::dirName(const dir_t&, char*)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:201:46: error: no 'void SdFile::ls(uint8_t, uint8_t)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:245:58: error: no 'uint8_t SdFile::make83Name(const char*, uint8_t*)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:284:57: error: no 'uint8_t SdFile::makeDir(SdFile*, const char*)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:384:74: error: no 'uint8_t SdFile::open(SdFile*, const char*, uint8_t)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:476:68: error: no 'uint8_t SdFile::open(SdFile*, uint16_t, uint8_t)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:502:64: error: no 'uint8_t SdFile::openCachedEntry(uint8_t, uint8_t)' member function declared in class 'SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:550:26: error: 'uint8_t SdFile::openRoot' is not a static member of 'class SdFile'
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:550:26: error: 'SdVolume' was not declared in this scope
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:550:36: error: 'vol' was not declared in this scope
    C:\arduino_16_11\hardware\teensy\avr\libraries\SD\utility\SdFile.cpp:550:41: error: expected ',' or ';' before '{' token
    Multiple libraries were found for "SD.h"
     Used: C:\arduino_16_11\hardware\teensy\avr\libraries\SD
     Not used: C:\arduino_16_11\libraries\SD
    Using library Audio at version 1.3 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Audio 
    Using library SPI at version 1.0 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SPI 
    Using library SD at version 1.0.8 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SD 
    Using library SerialFlash at version 0.4 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SerialFlash 
    Using library Wire at version 1.0 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Wire 
    Using library SdFat at version 2016.7.24 in folder: i:\tcode\libraries\SdFat 
    Error compiling for board Teensy 3.6.
    IDE 1.6.12::
    Multiple libraries were found for "SD.h"
    Used: C:\arduino-1.6.12\hardware\teensy\avr\libraries\SD
    Not used: C:\arduino-1.6.12\libraries\SD
    Using library Audio at version 1.3 in folder: C:\arduino-1.6.12\hardware\teensy\avr\libraries\Audio
    Using library SPI at version 1.0 in folder: C:\arduino-1.6.12\hardware\teensy\avr\libraries\SPI
    Using library SD at version 1.0.8 in folder: C:\arduino-1.6.12\hardware\teensy\avr\libraries\SD
    Using library SerialFlash at version 0.4 in folder: C:\arduino-1.6.12\hardware\teensy\avr\libraries\SerialFlash
    Using library Wire at version 1.0 in folder: C:\arduino-1.6.12\hardware\teensy\avr\libraries\Wire
    Last edited by defragster; 09-23-2016 at 05:40 AM.

  14. #14
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,755
    As far as TIMING - I removed the i:\tcode\libraries\SdFat - BOTH take 33 seconds to compile!
    IDE 1.6.12 :: 33 seconds
    IDE 1.6.11 :: 33 seconds


    IDE 1.6.12 :: 33 seconds ::
    Multiple libraries were found for "SD.h"
    Used: C:\arduino_16_11\hardware\teensy\avr\libraries\SD
    Not used: C:\arduino_16_11\libraries\SD
    Using library Audio at version 1.3 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Aud io
    Using library SPI at version 1.0 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SPI
    Using library SD at version 1.0.8 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SD
    Using library SerialFlash at version 0.4 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Ser ialFlash
    Using library Wire at version 1.0 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Wir e
    IDE 1.6.11 :: 33 seconds ::
    Multiple libraries were found for "SD.h"
    Used: C:\arduino_16_11\hardware\teensy\avr\libraries\SD
    Not used: C:\arduino_16_11\libraries\SD
    Using library Audio at version 1.3 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Aud io
    Using library SPI at version 1.0 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SPI
    Using library SD at version 1.0.8 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\SD
    Using library SerialFlash at version 0.4 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Ser ialFlash
    Using library Wire at version 1.0 in folder: C:\arduino_16_11\hardware\teensy\avr\libraries\Wir e

  15. #15
    Senior Member Epyon's Avatar
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    443
    I haven't noticed any speed increases when compiling. I mostly use libraries like SDfat, Ethernet, ...

    I did see a lot of improvement when upgrading from 1.6.8 to 1.6.11 though.
    Last edited by Epyon; 09-23-2016 at 06:37 PM.

  16. #16
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    I did not notice much (any?) change in speed. Are we expecting it on the first compiles of the program or more on subsequent compiles?

  17. #17
    Junior Member
    Join Date
    Sep 2016
    Posts
    2
    Quote Originally Posted by PaulStoffregen View Post
    Can you look at Arduino > About to double check the version of Arduino and Teensyduino?

    If no Teensyduino version is shown, seems likely Teensyduino didn't actually get installed to this copy of Arduino. Maybe try running the installer again? Perhaps double check the location of Arduino before installing. During install, the "?" button can show you how the installer is detecting Arduino. Maybe check that it's really seeing 1.6.12?
    OK, problem solved. It was a faulty teensy 3.1. I have tested with other new teensy 3.2 and it works perfect. Thank you for your help .

  18. #18
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,755
    FASTER 1.6.12 :: RECOMPILE TIMES - no code change :: MemoryAndCpuUsage
    // #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h>

    4-5 seconds on 1.6.12 [ Win 10 pro - i7 from SSD - TD_1.31b1 ] - tested 3 times. :: Versus first compile 33 seconds noted above.

    12-13 seconds on 1.6.11 [ Win 10 pro - i7 from SSD - TD_1.30 ] - tested 3 times (and repeated).

    On a T_3.6 default compile with
    Sketch uses 108,080 bytes (10%) of program storage space. Maximum is 1,048,576 bytes.
    Global variables use 14,676 bytes (5%) of dynamic memory, leaving 247,468 bytes for local variables. Maximum is 262,144 bytes.
    Quote Originally Posted by KurtE View Post
    I did not notice much (any?) change in speed. Are we expecting it on the first compiles of the program or more on subsequent compiles?
    opps - I didn't do that - the first compile would being exhaustive isn't a surprise - speed up would be on subsequent rebuilds.
    Last edited by defragster; 09-24-2016 at 12:50 AM. Reason: 1.6.12 FASTER

  19. #19
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    Quote Originally Posted by KurtE View Post
    subsequent compiles?
    Subsequent compiles are supposed to be faster.

    It's also supposed to do this for multiple windows. When you open another window, the first compile of that code might redo everything. But as long as you don't change the board, usb type, cpu speed or keyboard layout, each window is supposed to reuse compile work from its previous builds.

    Arduino 1.6.12 appears to be the first version of Arduino to ever really get this fully working as it should. Maybe?

  20. #20
    Senior Member
    Join Date
    Nov 2012
    Posts
    939
    I tried compiling the vocoder which has a fair bit of data and, of course, a fair bit of the audio library. I deleted one blank line in the .ino file so that it would force a recompile of that particular module. It is a wee bit faster the second time around.
    First time compile 52 seconds
    Second time 7 seconds.
    In previous versions of the IDE, the second and subsequent compiles seemed to take almost as long as the first time.

    Pete

  21. #21
    On Mac OSX 10.9.5 (Mavericks) with Teensy 3.2

    updated
    from: Arduino from 1.6.6 Teensduino 1.12
    to: 1.6.12 and 1.31-beta1

    No problems at all, very clear on Teensy side.

    Recompiles of 'Audio/Tutorial/Part_1_03Playing-Music' after changing only volume went from over 30 seconds to less than 1. Yaaaah

    Opening second window with 'Audio/Tutorial/Part_1_04_Blink_while_playing', 1st compile about 11secs (because same library's ?), then switch between windows with same Teensy and recompile again less than 1 second !
    Last edited by bicycleguy; 09-25-2016 at 05:08 PM. Reason: more tests, added dut

  22. #22
    Junior Member
    Join Date
    Sep 2016
    Location
    France
    Posts
    2
    Beta 1.31 works perfectly with arduino 1.6.12
    I use
    Code:
    #include <SPI.h>
    #include <ILI9341_t3.h>
    #include <EEPROM.h>
    #include <I2Cdev.h>
    #include <i2c_t3.h>
    #include <ADS1115.h>
    #include <TimeLib.h>
    #include <ADC.h>
    #include <CapacitiveSensor.h>
    #include <FreqCount.h>
    #include <PID_v1.h>
    #include <medianFilter.h>
    in my project. To be noted I2Cdev lib support perfectly i2c_t3 lib and offers a large choice of devices/sensors libraries.

  23. #23
    Junior Member
    Join Date
    Sep 2016
    Posts
    8
    Please check the direct pin accessing is not accepted.

    /*
    Blink
    */

    #define LED 13

    #define LED_ON (PORTC |= (1<<5))
    #define LED_OFF (PORTC &= ~(1<<5))

    void setup() {
    pinMode(LED, OUTPUT);
    }

    void loop() {
    LED_ON; // turn the LED on (HIGH is the voltage level)
    delay(1000); // wait for a second
    LED_OFF; // turn the LED off by making the voltage LOW
    delay(1000); // wait for a second
    }

  24. #24
    Member darioconcilio's Avatar
    Join Date
    Feb 2016
    Location
    Varese, Italy
    Posts
    41
    I'm using 1.6.12 with T 1.31 it works! (macOs Sierra)
    it compiled correctly:
    #include <ADXL345.h>
    #include <L3G4200D.h>
    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>

    this evening I'll try to use this complied....

    Teensy 3.2
    Last edited by darioconcilio; 09-28-2016 at 04:15 AM.

  25. #25
    Senior Member
    Join Date
    Nov 2012
    Posts
    939
    @ yasuski
    Which Teensy board are you using?

    Pete

Posting Permissions

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