Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Other >> Project Guidance >> Arduino Due Project Guidance
https://www.visualmicro.com/forums/YaBB.pl?num=1410793758

Message started by gyurko1 on Sep 15th, 2014 at 4:09pm

Title: Arduino Due Project Guidance
Post by gyurko1 on Sep 15th, 2014 at 4:09pm
Hello,

I'm working on a project with a custom design based on the Due.  The hardware does not have the USB ports accessible so I have to program/debug via a JTAG header.  I have code written using the Arduino libraries.  I also have a SAM-ICE JTAG programmer.
My question is will Visual Micro support the SAM-ICE from within Visual Studio, or will I need to use Atmel Studio?
From what I have read, I think it should work, but I've tried it, and there is no SAM-ICE in the Programmer menu.

Thanks,

Greg

Title: Re: Arduino Due Project Guidance
Post by Visual Micro on Sep 15th, 2014 at 4:17pm
Hi,

Good question.

The SAM-ICE will currently only show in Atmel Studio because we use the command line program (to upload via the ICE) called atprogram.exe that is supplied with Atmel Studio.

To allow the programmer to appear in Visual Studio would be an easy task but it is currently hidden because of the lack of atprogram.exe.

If you find an alternative to atprogram.exe or know how to install it in standalone mode then I can tell you how to enable it in Visual Studio. However I do not know of this solution or if it is available.

If you have installed atmel studio and run it once with the Visual Micro plugin installed then you will have a registry key that points to the atmel studio location. Therefore in theory Visual Micro could run the atprogram.exe from visual studio. I have not had time to try this out which is another reason for not allowing the programmer to show in visual Studio.

Sorry to be so vague but i can say that the programmer system is very flexible and you can add your own programmer combinations to the list. So if you have any ideas you can implement and we can consider the solution for the std release.

Title: Re: Arduino Due Project Guidance
Post by gyurko1 on Sep 15th, 2014 at 4:22pm
Thanks Tim...I'll see if I can figure something out.  I'll let you know if I get it working.
BTW, will single breakpoints/single stepping work with the sam-ice from Atmel Studio?

Greg

Title: Re: Arduino Due Project Guidance
Post by Visual Micro on Sep 15th, 2014 at 4:25pm
Hi,

I'm not sure how to answer that. Are you uploading with the ICE then debugging using serial or digital pins? This is how the Visual Micro debugger works, it does not use the ICE.

Alternatively if you want native Atmel debugging then you would need to use Atmel Studio and then click "File>Open object file for debugging" after an Arduino/Vm compile.

Are you already debugging?

Title: Re: Arduino Due Project Guidance
Post by gyurko1 on Sep 15th, 2014 at 5:34pm
I wanted to program and debug with the ICE. 
The problem is that I already have a bunch of code written with the Arduino libraries, otherwise, I'd just create an ASF project. 
Any other thoughts on how to do native debugging once I started using the Arduino libraries?

Title: Re: Arduino Due Project Guidance
Post by Visual Micro on Sep 16th, 2014 at 10:18am
Hi,

You can add your own programmers to the list, we use the std arduino 1.5.x system which supports your own hardware. We also provide additional config keys giving the location of the atmel tools.

The Visual Micro debugger is a replacement for Serial.println() which most people use to debug Arduino. It is not a replacement for a fully blown debugger and does not support debug of libraries.

However as mentioned previously you can build and upload an arduino program then use "file>open object file for debugging" and use the native atmel debugger.

Title: Re: Arduino Due Project Guidance
Post by Visual Micro on Oct 4th, 2014 at 3:11pm
Off-Topic replies have been moved to this Topic.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.