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 connect with visual Studio (c Sharp) and VM at the same time (Read 6663 times)
J. Krueger
Newbies
*
Offline


Posts: 3
Joined: Apr 23rd, 2013
connect with visual Studio (c Sharp) and VM at the same time
Apr 26th, 2013 at 8:51pm
Print Post  
Hi,

im new in the Arduino world and this forum.
I have an arduino mega board. Connect over USB.
I have install this plug in and have two questions:

1) How can I connect with VM ( for debugging ) and Visual Studio (c sharp ; send messages over a Port) at the same time with the mega Board. With only one connection I have no function and because of that no debugging.

2)I have no problems with a program without serial messages. But I have no Idea how I get the breakpoint windows ( in the lower Area in the Tutorial movie ). 
How can I use it?

Thanks,

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: connect with visual Studio (c Sharp) and VM at the same time
Reply #1 - Apr 26th, 2013 at 9:12pm
Print Post  
Hi,

Quote:
1) How can I connect with VM ( for debugging ) and Visual Studio (c sharp ; send messages over a Port) at the same time with the mega Board. With only one connection I have no function and because of that no debugging.


You are right, the default setup debugs on the main serial port and will not work at the same time as a C# program. There are various alternatives...

There is an overview in the text of the beta download page about how to use a different serial port (if available on the Arduino) or how to use SoftwareSerial and two Arduino digital pins.

I have added a wiki article here that I will expand asap.

What Arduino hardware are you using?

Quote:
2)I have no problems with a program without serial messages. But I have no Idea how I get the breakpoint windows ( in the lower Area in the Tutorial movie ). 
How can I use it?


If you mean the breakpoint list then it should be on the drop down menu at the top of vs:

DEBUG>Windows>Breakpoints

I hope this helps
« Last Edit: Apr 26th, 2013 at 9:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
J. Krueger
Newbies
*
Offline


Posts: 3
Joined: Apr 23rd, 2013
Re: connect with visual Studio (c Sharp) and VM at the same time
Reply #2 - Apr 26th, 2013 at 10:14pm
Print Post  
Hi,

1)Can you say me, if I understand your articel right?

For debugging I connect with the Board over to pins ( 7 and 8 ) and not over the USB Port from the arduino?
The consequence would be, that I need additional hardware. I think I need a USB 2 Serial Converter to use the Debugging function on the same way as at the moment?

2) Thanks, I had not seen it.

Thanks,

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: connect with visual Studio (c Sharp) and VM at the same time
Reply #3 - Apr 26th, 2013 at 10:24pm
Print Post  
Hi,

Yes there are lots of options, I find this cable very useful for lots of things 

FTDI 5v Cable (there is also a 3v version)



schematic
« Last Edit: Apr 26th, 2013 at 10:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
J. Krueger
Newbies
*
Offline


Posts: 3
Joined: Apr 23rd, 2013
Re: connect with visual Studio (c Sharp) and VM at the same time
Reply #4 - Apr 29th, 2013 at 12:53pm
Print Post  
Hi,

now I have an adapter USB to Serial, but I need a little bit support, how I can use It exactly.
I have an arduino Mega. I connect RX/TX to Ports 18/19 and set it to Remote PIN RX and Remote Pin TX. Remote Speed = 19k.
I set the Local Port value to com4. Remote Transport SoftwareSerial.

But VM want to connect still over com3 and not over com4.

What I have done wrong?

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: connect with visual Studio (c Sharp) and VM at the same time
Reply #5 - Apr 29th, 2013 at 1:23pm
Print Post  
Hi,

Set the LocalPort to COM4 and the debug will connect on COM4

Tip

If you have a mega you can use Serial1,Serial2 (RemotePort) and connect the serialusb to tx/rx1 or tx/rx2 etc. Using HardwareSerial instead of SoftwareSerial is better.

EDIT: Upload will still happen on main com port, it is only debug that will be on COM4
« Last Edit: Apr 29th, 2013 at 1:55pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint