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

Thread: Teensyduino 1.38 Beta #3

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

    Teensyduino 1.38 Beta #3

    Here is a third 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-beta2:

    Support for Arduino 1.8.4
    fix for disable of SD on Teensy 3.5 & 3.6 (Frank)
    SPI.transfer(readbuf, writebuf, size) (KurtE)
    Added TeensyThreads library (Fernando Trias)
    Fixed Adafruit_CC3000 on Teensy 3.x
    Audio envelope graceful handling of noteone while gain > 0
    Improved FreqMeasureMulti countToNanoseconds
    [Experimental] EventResponder
    [Experimental] MillisTimer
    [Experimental] SPI async using DMA & EventResponder (KurtE)

  2. #2
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    Hi Paul. Installed beta3 no problem. However, there is a conflict between the TeensyThreads Library and EventResponder which I mentioned in another thread with Kurt. All I am running is the tests.ino from the TeensyThreads library. Here is the exact error:

    Code:
    C:\Users\CYBERP~1\AppData\Local\Temp\arduino_build_778242/..\arduino_cache_517125\core\core_teensy_avr_teensy35_usb_serial,speed_120,opt_o2std,keys_en-us_bbc7c6806654ab36443e271befb1ac3c.a(EventResponder.cpp.o): In function `systick_isr':
    
    C:\Local Programs\arduino-1.8.3-c14\hardware\teensy\avr\cores\teensy3/EventResponder.cpp:326: multiple definition of `systick_isr'
    
    C:\Users\CYBERP~1\AppData\Local\Temp\arduino_build_778242\libraries\TeensyThreads\TeensyThreads.cpp.o:C:\Users\CyberPalin\Documents\Arduino\libraries\TeensyThreads/TeensyThreads.cpp:196: first defined here
    
    c:/local programs/arduino-1.8.3-c14/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
    
    collect2.exe: error: ld returned 1 exit status
    
    Multiple libraries were found for "TeensyThreads.h"
     Used: C:\Users\CyberPalin\Documents\Arduino\libraries\TeensyThreads
     Not used: C:\Local Programs\arduino-1.8.3-c14\hardware\teensy\avr\libraries\TeensyThreads
    Error compiling for board Teensy 3.5.
    Will let you know if there are any other conflicts.

    Mike

  3. #3
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    EDIT: here is the post: https://forum.pjrc.com/threads/44723...l=1#post150899

    EDIT2: Using Arduino 1.8.3.
    Last edited by mjs513; 08-22-2017 at 10:33 PM.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    Quote Originally Posted by mjs513 View Post
    there is a conflict between the TeensyThreads Library and EventResponder
    Please give this a try. If it works, I'll send a pull request....
    Attached Files Attached Files

  5. #5
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    Wonder why they decided they needed a new release already? Nothing looked earth shattering in the release notes.

    Now that teens threads is in the build, maybe it is time to really try it out
    But probably topic for another thread!

    Yes both EventResponder's MillisTimer and the thread code use the systick_isr... The thread code is a lot more involved including it is written in Assembly language.

  6. #6
    Senior Member
    Join Date
    Jul 2014
    Location
    New York
    Posts
    1,816
    That fixed it. Now compiles and runs no issues.

    Ran another sketch I use for my rover that uses the following libraries and besides a few warning messages from the adafruit libraries it compiles fine:
    Code:
    #include <Wire.h>
    #include <EEPROM.h>
    #include <StopWatch.h>
    #include <elapsedMillis.h>
    #include <Streaming.h>
    #include <StopWatch.h>
    #include <PWMServo.h>
    #include <vector>
    #include <string.h>
    
    #include <FastLED.h>
    
    #include <Adafruit_MotorShield.h>
    #include "utility/Adafruit_MS_PWMServoDriver.h"
    #include <Adafruit_Sensor.h>
    #include <Adafruit_TSL2561_U.h>
    #include <Adafruit_BNO055.h>
    #include <utility/imumaths.h>
    #include <VL53L0X.h>
    Will run a few more tests with my other crazy sketches and will let you know, but I don't see any issues coming up.

    Thanks
    Mike

    EDIT: By the way am using IDE 1.8.4 now.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    I submitted a pull request.

    https://github.com/ftrias/TeensyThreads/pull/4

    This fixes the compile error. But TeensyThreads will prevent MillisTimer from running. That probably needs to be fixed by a special higher priority thread or some other mechanism within TeensyThreads to call MillisTimer::runFromTimer() just after each systick interrupt.

Posting Permissions

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