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 Re: Error debugging when using non-default serial speed (Read 3589 times)
Juan
Newbies
*
Offline


Posts: 9
Location: Bilbao
Joined: Sep 20th, 2012
Re: Error debugging when using non-default serial speed
Sep 26th, 2012 at 2:41pm
Print Post  
I don't know why, but it has started to debug ok. I have delete the line "Serial.begin(9600)" and it works, but then I have written again and it continues working.

Thanks for all!!

I'm going to try with other sketches to see if the problem has completely fixed.
« Last Edit: Oct 18th, 2012 at 9:38pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #1 - Sep 26th, 2012 at 4:54pm
Print Post  
I think there is a refresh problem with the debug settings in the current release.

If you have anymore problems then switch to "Release" build and then switch back to "Debug"

I hope to have some time to look at this at the weekend.

But I am pleased it is working for you now. Thanks for being responsive and providing lots of updates  Smiley

Question about Serial.begin(9600)

Have you entered 9600 in your project speed settings? If not it will start to fail unless the pc serial is set to 9600. 

The best speed, bearing in mind current bugs, is 115200 which means that you don't need to set anything special in the project properties
« Last Edit: Sep 26th, 2012 at 4:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error debugging
Reply #2 - Oct 18th, 2012 at 9:34pm
Print Post  
The problem was that the change of speed was not being detected in the serial monitor which powers the debugger.

When the serial monitor opens you would see that it has an incorrect speed. 

If you encounter this problem the please alter the speed in the serial monitor and the debug will start to work. 

If you have debug break/pause enabled (or Startup Wait) then close and re-open the serial monitor after changing the speed. Ensure the Dtr checkbox is ticked.

This is fixed in the next release due in a few days.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint