Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic No serial output without line feed termination (Read 1965 times)
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
No serial output without line feed termination
May 26th, 2020 at 1:42am
Print Post  
For some reason I have started having trouble getting serial output from Serial.printf() statements in programs with a Teensy 3.x target.  I created a minimal program to illustrate the problem 

Code
Select All
/*
    Name:       Printf_Demo.ino
    Created:	5/24/2020 10:13:54 AM
    Author:     FRANKNEWXPS15\Frank
*/


void setup()
{

    Serial.begin(115200);


    // wait until serial port opens for native USB devices
    while (!Serial)
    {
        delay(10);
    }

    Serial.print("Serial.print without a terminating linefeed");

    Serial.printf("Serial.printf without a terminating linefeed");

    //Serial.println("Serial.println");
}

void loop()
{


} 



When this program is compiled in VS2019/VM with a Teensy 3.2 target, with all other settings unchanged, no serial output appears in the serial monitor window.  However, if I uncomment the "Serial.println()" line, then all three strings appear, all on one line, as expected.

This same program, when compiled in the Arduino IDE works fine; when the last line is commented out, I get the first two strings on one line, and with it uncommented, I get the same behavior as in VS/VM - all three strings on the same line.

I must be doing something wrong, but I have no idea what that might be.  Any help would be appreciated.  I have attached a ZIP file containing the verbose compiler output, and my entire project folder.  If anything else is required, I'll be happy to provide it

TIA,

Frank


  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: No serial output without line feed termination
Reply #1 - May 26th, 2020 at 4:10pm
Print Post  
Would it be possible to set the build options as shown in the yellow box at the top, and re-post the full build log for this project?
  
Back to top
 
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: No serial output without line feed termination
Reply #2 - May 26th, 2020 at 5:21pm
Print Post  
Sorry - forgot about the build properties. Here it is again.

Frank
'
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: No serial output without line feed termination
Reply #3 - Jun 5th, 2020 at 3:42pm
Print Post  
Thanks for the report, the latest build (20.05.18.7) should resolve this issue, and can be downloaded from the below location:

Previous Releases, New Releases and Notifications
« Last Edit: Jun 5th, 2020 at 3:42pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: No serial output without line feed termination
Reply #4 - Jun 5th, 2020 at 4:12pm
Print Post  
Thanks for addressing this so quickly -- and for letting me know that I'm not entirely crazy  Grin

Frank
  
Back to top
 
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: No serial output without line feed termination
Reply #5 - Jun 6th, 2020 at 4:25pm
Print Post  
Verified that the update solved the problem - thanks again!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint