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

Thread: Teensy stop serial

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

    Teensy stop serial

    using

    • teesy 3.2
    • teensy_serialmon
    • arch linux
    • platformio


    the serial monitor stop after a few seconds, but if I use the flag "-D USB_RAWHID" that work fine.

    Code:
    #include "WProgram.h"
    
    extern "C" int main() {
    	Serial.begin(19200);
    	delay(3000);
    	pinMode(13, OUTPUT);
    	
    	for (int i = 0; ; i++) {
    		Serial.print("...\n ");
    		Serial.print(i);
    		delay(100);
    		digitalWrite(13, i % 2);
    	}
    }

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    8,826
    What happens with similar code using the IDE for reference?

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

    Exclamation

    now I can't use teensyduino, no work

    Click image for larger version. 

Name:	Screenshot_20190623_212809.jpg 
Views:	12 
Size:	149.6 KB 
ID:	16835

    before I uploaded the code with -D USB_SERIAL , if not, arduino does not recognize the teensy

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    8,826
    At that point a Button press should facilitate the upload if the cable is good. Did a Button press allow the upload?

    Indeed without USB running on the Teensy in some fashion ( compiled in and sketch running properly ) - the Computer cannot trigger an automated upload and that requires a Button press.

    Not a Linux user - but I've seen notes about the system re-assigning Teensy USB ports to system modem manager or something to that effect - which could explain the loss of Serial Monitor connection and the ability to upload from the IDE.

  5. #5
    Junior Member
    Join Date
    Jun 2019
    Posts
    18
    i have the same problem ;(

    Ubuntu 19.04
    Visual Studio Code 1.35.1
    PlatformIO 3.6.7

Posting Permissions

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