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) minor bug in serial monitor baud rate (Read 10065 times)
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
minor bug in serial monitor baud rate
Nov 15th, 2014 at 6:56pm
Print Post  
Reproduces problem for me:
startup
click on monitor icon to open serial monitor display window
baud rate is 115200 
change baud rate to 250000
click saveall
exit program
restart program
open serial monitor program again
baud rate is correctly 250000
click serial monitor close then open
baud rate reverts to 115200.

Does the same revert after a download.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #1 - Nov 15th, 2014 at 7:12pm
Print Post  
Is the debugger On?

Pls try setting the project property called RemoteSpeed to 250k to see if that solves it. You might need to attempt a compile and upload to for the property to be become active. 

Alternatively switch to Release or un-tick "tools>visual Micro>automatic debugging" and try again

Not sure if that will help but interested to hear

Thanks
  
Back to top
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: minor bug in serial monitor baud rate
Reply #2 - Nov 15th, 2014 at 7:37pm
Print Post  
Debugger not on or in use.
automatic debugging was/is un-ticked.

would you have time to reproduce the problem and define a fix?
« Last Edit: Nov 15th, 2014 at 7:45pm by stevech »  
Back to top
 
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: minor bug in serial monitor baud rate
Reply #3 - Nov 15th, 2014 at 7:48pm
Print Post  
RemoteSpeed offers max of 115200. no higher
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #4 - Nov 15th, 2014 at 10:47pm
Print Post  
You can type anything into remote speed but if debug is off then it has no effect.

I can look at it next week for sure. It should be easy to track.

What speed is displayed in tools>options>visual micro>communications?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #5 - Nov 15th, 2014 at 10:58pm
Print Post  
I've just tried it and I sort of get the same effect that you describe if the project things that debug was on the last time you compiled and uploaded to the board. 

Can you see if project property (Micro Debug) and sure it is "false"

If (Micro debug) is off then try deleting the upload.vms.xml in the visual micro folder below the sketch folder.

Close and re-open the serial monitor or ide and set the speed and it should be okay.

The upload.vms.xml is normally not an issue but there is something happening in this case. deleting it saves a bunch of other questions Wink
  
Back to top
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: minor bug in serial monitor baud rate
Reply #6 - Nov 16th, 2014 at 12:14am
Print Post  
Thanks for the help, Tim. Sorry this is isn't easy.

I deleted upload.vms.xml and restarted the IDE. That file wasn't recreated - apparently it is created after a microprocessor programming transfer finishes.

So that done, the baud rate is preserved and does not revert when I close then reopen the Serial Monitor.

However...
Micro Debug in properties has a drop-down saying either None or Full. You said choose "false"; not there. 
Seems like I shouldn't type "false" into the drop down box. 
But I did type it. And it got saved.
That caused this big problem: After doing a successful upload, a popup window from the debugger appears.. then closes then VS crashes. I don't think it liked "false" as an entered choice.

Also, minor: I get some garbage chars on the terminal window after a download to the micro. Then my program starts up at 250K and the text is OK. 
I know VS had to switch from 250K to 115.2K in AVRdude for the download/bootloader. Maybe switching back to 250 is why the garbled. chars?

Anyway, the "false" vs "None" choice for microdebug is the big deal as it crashes VS.

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


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #7 - Nov 16th, 2014 at 12:24am
Print Post  
Hi,

Yes sorry I meant none not false.

delete the .xml files in the visual micro folder below the sketch and the crash will go. this is where all the settings are stored.

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


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #8 - Nov 16th, 2014 at 12:26am
Print Post  
I just saved false and no crash. Even though false is not really valid it is just a string property so shouldn't cause a problem. The crash must be something else of deleting the xml files doesn't clear it. maybe reset the ide via tools>options
  
Back to top
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: minor bug in serial monitor baud rate
Reply #9 - Nov 18th, 2014 at 5:21am
Print Post  
Tim@Visual Micro wrote on Nov 16th, 2014 at 12:26am:
I just saved false and no crash. Even though false is not really valid it is just a string property so shouldn't cause a problem. The crash must be something else of deleting the xml files doesn't clear it. maybe reset the ide via tools>options


What is expected by VM ? "false" or "None"? I don't recall every typing a new value into a drop-down - indeed drop-downs are usual read-only to prevent the user from hosing things up.

Until this all gets corrected, I'm manually switching baud rates as I move between downloading and testing. PITA.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #10 - Nov 18th, 2014 at 2:05pm
Print Post  
I think we are getting confused. The correct options is None or empty.

  
Back to top
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: minor bug in serial monitor baud rate
Reply #11 - Nov 20th, 2014 at 1:48am
Print Post  
I'm confused - because I read instruction to say use 'false'
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: minor bug in serial monitor baud rate
Reply #12 - Nov 20th, 2014 at 11:49am
Print Post  
No - false

Yes - None or empty

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint