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
Hot Topic (More than 8 Replies) Serial debug does not work anymore. (Read 3711 times)
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Serial debug does not work anymore.
Mar 23rd, 2023 at 6:56pm
Print Post  
Serial debug does not work anymore.
Serial Monitor opens with text ...
"Opening port
Port open "
but Serial.println(F("abc")); is not played back.
Micro Debug Trace window shows ...
"Launching Debugger...".
After disconnect from port, "Serial Monitor" shows "Port closed".
Micro Debug Trace window shows ...
"Debugging has exited".
"Expression on Com3" shows "Expressions Watch Window: Waiting for debugger breakpoint data. 

tips:- 

Add messages and/or {variables} and {function()} to..." but action like "{@Plot.MyPlotWindow04.ARead_1.Blue AR1}" are not processed.
Under Arduino IDE2 the Serial Monitor can display everything without problems. I have already searched for settings on your homepage and uninstalled and reinstalled Visualmicro. Unfortunately without success.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debug does not work anymore.
Reply #1 - Mar 23rd, 2023 at 7:03pm
Print Post  
Switch the configuration name on the toolbar from Debug to Release, then upload again.

  
Back to top
IP Logged
 
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Re: Serial debug does not work anymore.
Reply #2 - Mar 23rd, 2023 at 9:36pm
Print Post  
After switching to Release, the same as with Debug
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debug does not work anymore.
Reply #3 - Mar 23rd, 2023 at 9:38pm
Print Post  
Please folllow the guide in yellow above.

Also show a screen shot of the serial monitor wide enough to see the settings.
  
Back to top
IP Logged
 
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Re: Serial debug does not work anymore.
Reply #4 - Mar 24th, 2023 at 10:55am
Print Post  
C:\Users\infou\Documents\VisiualMicro\NeuerOrdner(2)\ScreenShot.JPG
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2718
Joined: Feb 13th, 2019
Re: Serial debug does not work anymore.
Reply #5 - Mar 24th, 2023 at 11:59am
Print Post  
Thanks for the screenshot and logs.

Can you set the Debugger to None (vMicro > Debugger > Debug > Debug: None.

Then re-compile and upload the project and check the Serial Output for the messages from your code?
  
Back to top
IP Logged
 
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Re: Serial debug does not work anymore.
Reply #6 - Mar 31st, 2023 at 9:42am
Print Post  
Hello Simon,
I only see a difference in the "Debug Trace".
Look into the email from March 24.There is a screenshot there.
  
Back to top
 
IP Logged
 
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Re: Serial debug does not work anymore.
Reply #7 - Mar 31st, 2023 at 12:46pm
Print Post  
It seems to be a problem with the Stm32F401. With the ESP32 the Serial Monitor and the Serial Debug window opens. What settings can I set for the Stm32 ? I also use a ST-Link V2 clone for the Stm32F401.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2718
Joined: Feb 13th, 2019
Re: Serial debug does not work anymore.
Reply #8 - Mar 31st, 2023 at 2:58pm
Print Post  
Thanks for the update.

With the STM32F401, when your Serial Messages work in the Arduino IDE, are you just using the standard Serial.println() calls in your code? (or a different Serial Object)

Have you tried changing the DTR and RTS Settings in the Serial Monitor in Visual Micro when running a sketch without the Serial Debugger, and just your own print statements?

Enabling the DTR in the monitor is the most important for most boards. It causes a reboot so you can then see serial messages from the setup(). The Arduino IDE always has this setting on and does not allow it to be switched off.
« Last Edit: Mar 31st, 2023 at 3:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Re: Serial debug does not work anymore.
Reply #9 - Mar 31st, 2023 at 3:55pm
Print Post  
Hello Simon,
It seems to have been located on the DTR. 
Thanks very much
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debug does not work anymore.
Reply #10 - Mar 31st, 2023 at 8:29pm
Print Post  
Thanks for the info. The esp32 provides a special configuration property that notifies the IDE not to use DTR. That would force it off, we will look into why subsequently using a different board does not switch it back on again. Your manual setting overrides.

Question to help us test this. Did you use the stm32 with the same project as the esp32 or were you using two different projects?
  
Back to top
IP Logged
 
infou
Junior Member
**
Offline


Posts: 18
Joined: Dec 23rd, 2020
Re: Serial debug does not work anymore.
Reply #11 - Apr 1st, 2023 at 9:10am
Print Post  
For testing I just created a small program and ran it with ESP32 and Stm32.
void setup()
{
    Serial.begin(115200);

}

void loop()
{
    int Taste3 = 7;
    delay(200);
    Serial.print(F("Taste_3    = "));
    Serial.println(Taste3);

}
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debug does not work anymore.
Reply #12 - Apr 1st, 2023 at 11:37am
Print Post  
Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint