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 Debugger opens Serial and free mem window on wrong port (Read 456 times)
Eric T
Junior Member
**
Offline


Posts: 14
Joined: Jan 4th, 2022
Debugger opens Serial and free mem window on wrong port
Oct 30th, 2024 at 1:16am
Print Post  
Hi, I've got the correct COM set for uploads (COM50), but when the program starts, it opens the serial text window and the free memory monitor on the wrong port (COM39).  After closing the two windows I can click on the serial monitor button and it now opens the monitor on the correct port (after what seems to be another upload, though I can't be sure because the Micro Build window does not change) , but I don't know how to get the free memory monitor to open again.

I'm interested to find out a) why it's got this delusion about COM39, and b) how to open the free memory monitor after the fac.

PS: It's not large COM numbers either, I just cleaned up my stack of unused COM reservations, and am running on COM7, but after uploading and starting the program the two windows still opened on COM39 - a device that never was used (it was not something programmable), and which I've just deleted, so there is no COM39 at all.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger opens Serial and free mem window on wrong port
Reply #1 - Oct 30th, 2024 at 3:07am
Print Post  
The free memory monitor is usually associated to the serial debugger. If you look at the vMicro debugger menu you can enable it to show when debug starts.

The serial debugger uses the upload port by default. It is possible to override which local and remote port it uses on the vMicro>Debugger menu. It sounds like you have it overriden.

If the debugger has been moved to a different port then opening the serial monitor for the upload port would show only your own serial.

Whichever port the serial debugger is assigned to will start and stop the debugger when the respective serial monitor is opened or closed.

After a compile/upload, if serial debug is enabled, the respective serial monitor and memory monitor (if enabled) will automatically open.

In debug mode, there is a menu on the serial monitor that shows allows manually closed debug windows to be reopened (made visible).

Your settings show that you do have the serial debugger enabled and the memory report is enabled using the default Serial from the board. It is also possible that your board switched serial port after being programmed?

Does this make sense?



« Last Edit: Oct 30th, 2024 at 3:12am by Tim@Visual Micro »  
Back to top
IP Logged
 
Eric T
Junior Member
**
Offline


Posts: 14
Joined: Jan 4th, 2022
Re: Debugger opens Serial and free mem window on wrong port
Reply #2 - Oct 30th, 2024 at 1:38pm
Print Post  
The local port was not overridden (see screen snapshot).  I tried the Reset These Settings, which also did not change things.  Finally, I explicitly overrode the Local Port to COM7, but it still opens COM39.
« Last Edit: Oct 30th, 2024 at 1:43pm by Eric T »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Eric T
Junior Member
**
Offline


Posts: 14
Joined: Jan 4th, 2022
Re: Debugger opens Serial and free mem window on wrong port
Reply #3 - Oct 30th, 2024 at 2:51pm
Print Post  
Another observation - My current configuration is "Debug".  When set to "Release", it does automatically open the correct (COM7) Serial text window, but it does not open the free memory window, even though I have the checkmark for it set. However, once I selected "Debug: Serial", the free memory window opened correctly.

Switching configuration back to debug, the com port used went back to COM39
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2718
Joined: Feb 13th, 2019
Re: Debugger opens Serial and free mem window on wrong port
Reply #4 - Oct 30th, 2024 at 3:51pm
Print Post  
Thanks for the detail and observations around this.

If you change to the Debug configuration, and then click vMicro > Project Properties, and scroll to the "Micro Debug" section, do you see the Local Port entry has COM39 set in it?
  
Back to top
IP Logged
 
Eric T
Junior Member
**
Offline


Posts: 14
Joined: Jan 4th, 2022
Re: Debugger opens Serial and free mem window on wrong port
Reply #5 - Oct 30th, 2024 at 6:33pm
Print Post  
Ahh, there it is: The entry "Local Port" is blank for Release, but contains COM39 for Debug.

Thank you!

typed earlier...:
When I click on vMicro -> Project Properties, it directs me to the standard Visual Studio properties sheet for the Arduino project.  The (Micro Debug) entry only allows "Full" or "None", and "None" is selected.  This is the same for both Debug and Release.  Further down in the project properties is the Upload Port/IP field, which for both configurations shows COM7.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint