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 Can`t proceed executing after pause on the breakpoint. (Read 5376 times)
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Can`t proceed executing after pause on the breakpoint.
Jan 6th, 2016 at 1:29pm
Print Post  
Hi! 

Just investigating a product I`ve faced with a such problem (no difference on a simple test or on the big project):

I can`t continue executing of the sketch after stop on a simple breakpoint. 

I use Visual Studio 2012, Arduino IDE 1.6.7, board Arduino Mega and external USB-2-RS232 adapter connected to pin 8 and 9 on Mega. Therefore, in project settings I specifid SoftwareSerial (all hardware serials are occupied), right pins and right LocalPort, same speed 115200. 

In general it works. I`ve got the right message on the start in the Micro Debug Trace window, I see the local variables through breakpoints and I can stop scetch. There is the Continue button (F5) on the toolbar. Its pressable, but doing nothing. 

Whats wrong? How to continue executing of the sketch? 
Thank you! 
« Last Edit: Jan 6th, 2016 at 1:30pm by Alexey V. Popov »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can`t proceed executing after pause on the breakpoint.
Reply #1 - Jan 6th, 2016 at 2:00pm
Print Post  
Hi

Arduino SoftwareSerial does not work reliably over 56k

Please lower the speed using the RemoteSpeed property then it should be okay.

info: When you click Continue visual micro simply sends a char 'c' to the Arduino and the problem suggests the c is not arriving on the Arduino 

Thanks
  
Back to top
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: Can`t proceed executing after pause on the breakpoint.
Reply #2 - Jan 6th, 2016 at 2:49pm
Print Post  
Thanks for advice, but unfortunately it does not help. 
Tried with 57600, 38400 and 9600 - the same result. Stop and nothing happens. 
Tried to send 'c' through debug serial port window manually - does not help (no confirmation that 'c' was realty sent, so who knows..). 

Any other ideas?
« Last Edit: Jan 6th, 2016 at 2:50pm by Alexey V. Popov »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can`t proceed executing after pause on the breakpoint.
Reply #3 - Jan 6th, 2016 at 3:05pm
Print Post  
Hi,

I just reviewed the SoftwareSerial document on arduino.cc and it has an important note for the mega

https://www.arduino.cc/en/Reference/SoftwareSerial

Please review the list of digital pins that support SoftwareSerial. I guess this mainly applies to the RX pin which has to receive.

I can confirm that the Visual Micro SoftwareSerial option simply invokes the std Arduino SoftwareSerial so it should work okay and did when I last tested it (some months ago)

Any problems I will retest but expect interrupt pin on RX to be important
  
Back to top
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: Can`t proceed executing after pause on the breakpoint.
Reply #4 - Jan 6th, 2016 at 3:17pm
Print Post  
Yes! It works now. 
You are right. I used pin 9 as RX. I replaced it with pin 10 - and it works now!
Thank you very much! 

PS I though that as soon as I got some message from the board through debug line - the communication is OK, I expected some "handshake" as a self-diagnostic inside debugger. This is a reason why I did not pay attention to the connection (it looks like it works, but...). 
Thank you again!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can`t proceed executing after pause on the breakpoint.
Reply #5 - Jan 6th, 2016 at 5:21pm
Print Post  
Great. It's a tough one. The more complexity the more memory and less like the user code. 

However, there are plans to reinforce a few areas. One to tell you if a signal has not been received on the Arduino and one to tell you the board is already at a breakpoint if you have switched off dtr and debug while the cpu has been running for a while (ie: no reboot when debug starts).
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint