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

Thread: Teensy 3.2 void setup

  1. #1
    Junior Member
    Join Date
    Aug 2019
    Posts
    6

    Teensy 3.2 void setup

    Hi, is it normal that teensy 3.2 is not printing any serial data from void setup()? thanks

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,761
    Yes, for some ms.

    Typical to include something like this before first USB printing:
    Code:
    	while (!Serial && millis() < 4000 );
    	Serial.println("\n" __FILE__ " " __DATE__ " " __TIME__);
    millis() will hit at least 300 if not 500 or more depending on the time it takes for the connected 'PC' USB to establish connect to the Teensy and the Serial Monitor program in use.

    That code will wait 4 seconds for slow machine or in case SerMon is not already active when connected.

    if (!Serial) - if TRUE than printing will likely be lost and go unseen.

  3. #3
    Junior Member
    Join Date
    Aug 2019
    Posts
    6
    thank you !!

Posting Permissions

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