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

Thread: PROBLEMS WITH SERIAL2 and SERIAL3

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    2

    PROBLEMS WITH SERIAL2 and SERIAL3

    Hey paul...

    I was hoping you could offer some wisdom... Im having an impossible timing using serial2 or serial3 with teensy 3.0... Serial1 writes and prints fine to my lcd screen... its a simple serial lcd screen... with a ground, voltage, and rx pin... however, i cant get serial2 or 3 to print or write to the lcd screen... im using the appropriate pins on teensy... pin 10 for serial2 and pin 8 for serial3... however nothing transmits... my main goal is to send midi messages at the same time as i send serial messages however when i try to send both on the same pin... (pin1) i get crazy midi messages and messed up serial messages to the lcd.... Heres the simple test code I tried... just to get it to print ANYTHING... the lcd uses 19200 baudrate... as i said serial1 works fine...


    void setup(){
    Serial2.begin(19200);
    }

    void loop(){
    Serial2.print("test");
    delay (400);
    }

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,785
    Opps, that's an embarrassing regression / bug. Looks like the optimizations in Serial1 broke certain cases for Serial2 and Serial3.

    Here are files to fix it. Just copy these to hardware/teensy/cores/teensy3.
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    2

    thanks

    Quote Originally Posted by PaulStoffregen View Post
    Opps, that's an embarrassing regression / bug. Looks like the optimizations in Serial1 broke certain cases for Serial2 and Serial3.

    Here are files to fix it. Just copy these to hardware/teensy/cores/teensy3.

    worked like a charm ... thanks... i thought i was going insane...

  4. #4
    Junior Member
    Join Date
    Jun 2013
    Location
    Sheridan, WY
    Posts
    8
    This saved me some therapy, I too thought I was going crazy. Thanks

Posting Permissions

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