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 I can´t connect Atmel Studio 7 with Arduino Uno (Read 8098 times)
Deutschland2015
Newbies
*
Offline


Posts: 1
Location: Regensburg
Joined: Mar 29th, 2016
I can´t connect Atmel Studio 7 with Arduino Uno
Mar 29th, 2016 at 10:23am
Print Post  
hello, I'm beginning with Atmel Studio, and I have to connect this program with Arduino Uno 1,6,5 so I've followed several steps in order to connect it, but I do not get it.

1° Step: I've downloaded the extension for Arduino on Atmel Studio, and I've installed it.
2° Step: I open External Tool window, and I create a new tool. in Command I choose the location of the avrdude.exe archive. In arguments I write the next: 
-C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -p atmega328 -c arduino -P COM6 -b 115200 -U flash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i

My microcontroller is ATMega328p and the Port number is right.

I select "Use Output window" and click Ok.

After that, I import a sketch from arduino examples (Blink for example), I select the right board (Arduino Uno) and the right device(atmega328p) I compile and click in the windows that I´ve created in the previous step. But the program show me this message and the program doesn't execute in the Arduino board:

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e950f
avrdude.exe: Expected signature for ATmega328 is 1E 95 14
             Double check chip, or use -F to override this check.

avrdude.exe done.  Thank you.



Someone knows how connect correctly Atmel 7 with Arduino? I can send pictures or anything that is useful to solve the problem.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can´t connect Atmel Studio 7 with Arduino Uno
Reply #1 - Mar 29th, 2016 at 12:24pm
Print Post  
Hello,

With Visual Micro you do not need to use external tool or any device programming.

Please follow the "First Steps" in the documentation and also the build/upload instructions.

http://www.visualmicro.com/page/User-Guide.aspx?doc=index

It should be easier than you have found so far Smiley
  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: I can´t connect Atmel Studio 7 with Arduino Uno
Reply #2 - Mar 29th, 2016 at 10:45pm
Print Post  
I was able to connect Visual Micro to Visual Studio, but not to Atmel Studio. In Atmel Studio 7 there is a choice to open new project from an Arduino sketch, but it asks for a board and device, and there is nothing to select.

Screen shot is below.

I also tried to open the project file from Visual Studio, but it is a .vcxproj which is not recognized by Atmel Studio.
« Last Edit: Mar 29th, 2016 at 10:46pm by PStechPaul »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can´t connect Atmel Studio 7 with Arduino Uno
Reply #3 - Mar 29th, 2016 at 10:48pm
Print Post  
That isn't a visual micro window. That's a converter to move from arduino to native atmel.

Did you follow the link on our downloads page for the atmel 7 installer? It's a different link to the as6.2 version.
  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: I can´t connect Atmel Studio 7 with Arduino Uno
Reply #4 - Mar 30th, 2016 at 12:00am
Print Post  
I was able to install the Arduino interface in Atmel Studio 6.2 by selecting Tools > Options > Environment > Add-In Security and adding the Addins\AS70 folder. But the project would not load - see the following:

Code
Select All
Error during processing of the command. Please review or post the stack trace in the www.visualmicro.com forumCould not load file or assembly 'Atmel.Studio.Services.Interfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=d264112969646cc9' or one of its dependencies. The system cannot find the file specified. (Visual.Micro.Visual.Studio.Arduino.Helper.SolutionOpenArduinoSketch)
System.IO.FileNotFoundException: Could not load file or assembly 'Atmel.Studio.Services.Interfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=d264112969646cc9' or one of its dependencies. The system cannot find the file specified.
File name: 'Atmel.Studio.Services.Interfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=d264112969646cc9'
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.OpenOrCreateSketch(String fn)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.ExecCmd(String commandName)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 



I could not find an add-in version for 6.2 in the Addins folder, but it seems to be in the main folder. Atmel Studio 7.0 does not have the Add-In Security choice in the Environment menu.

It seems to work!  Cheesy 

Now if only it worked with V7...  Roll Eyes

Some screen shots are below.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: I can´t connect Atmel Studio 7 with Arduino Uno
Reply #5 - Mar 30th, 2016 at 12:38am
Print Post  
It works in Atmel Studio 6.2, and I was able to open the project in Atmel Studio 7.0. But it would not build. It interprets it as a c++ or c project and the dependencies are all wrong. I had to create a file "main.c" like this:

Code
Select All
#include ".Simple_Charger.vsarduino.h"

extern	void	setup();
extern	void	loop();

int	main() {
	setup();
	loop();
} 



And that included file is:

Code (C++)
Select All
/*
	Editor: http://www.visualmicro.com
	        visual micro and the arduino ide ignore this code during compilation. this code is automatically maintained by visualmicro, manual changes to this file will be overwritten
	        the contents of the Visual Micro sketch sub folder can be deleted prior to publishing a project
	        all non-arduino files created by visual micro and all visual studio project or solution files can be freely deleted and are not required to compile a sketch (do not delete your own code!).
	        note: debugger breakpoints are stored in '.sln' or '.asln' files, knowledge of last uploaded breakpoints is stored in the upload.vmps.xml file. Both files are required to continue a previous debug session without needing to compile and upload again

	Hardware: Arduino Mini w/ ATmega328, Platform=avr, Package=arduino
*/

#define __AVR_ATmega328p__
#define __AVR_ATmega328P__
#define ARDUINO 106
#define ARDUINO_MAIN
#define F_CPU 16000000L
#define __AVR__
extern "C" void __cxa_pure_virtual() {;}

//
//
void sampleInterrupt();

#include "C:\Program Files (x86)\Arduino\hardware\arduino\variants\eightanaloginputs\pins_arduino.h"
#include "C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\arduino.h"
#include <Simple_Charger.ino>
 



I suppose I should be happy that it works with 6.2, and it seems to interface with the Dragon, but I'd like to know how to get 7.0 to work.  Cool
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can´t connect Atmel Studio 7 with Arduino Uno
Reply #6 - Mar 30th, 2016 at 10:26am
Print Post  
You need to switch on "tools>options>visual micro>compiler>show build properties" and also switch on "verbose". 

Then click Build>Clean

Then Build and email the output which will show your config.

If you needed to create a main.c and the project did not build then it means Visual Micro is not installed or working.

Let's discuss AS7 in a different thread to avoid confusion.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint