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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Unable to create an Arduino project for ATmel Studio (Read 29020 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #20 - Jan 6th, 2014 at 9:23pm
Print Post  
1)
It's interesting which menu item did you use to open the project i sent you?

2)
Can you please switch Visual Micro off by un-ticking the checkboxes for Visual Micro in Tools>Addin Manager.

Then re-start Atmel Studio and open the project I sent you. No need to open a solution first.

Does the project open, do you see the project and .ino in the solution explorer?

Thanks
« Last Edit: Jan 6th, 2014 at 9:24pm by Tim@Visual Micro »  
Back to top
IP Logged
 
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Re: Unable to create an Arduino project for ATmel Studio
Reply #21 - Jan 6th, 2014 at 10:50pm
Print Post  
1) I sent two screen shots one using the atmel open solution the other open sketch menu item

2) no project or ino - with visual micro unchecked - the only way to get the ino to display is to double click the .ino file in the Windows explorer which will fire up Studio 6 and display the .ino file - HOWEVER the build menu is missing.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #22 - Jan 6th, 2014 at 11:05pm
Print Post  
Hi,

Okay there is some confusion between opening a solution and opening a project.

The solution you keep opening is a blank one that was probably created when you clicked save when closing Atmel Studio after a failed attempt to create a project. Please ignore the solution or delete it for less confusing times Smiley It has an extension .asln

Please open the project (AtmelTest.ccpproj) that I sent you.

Thanks

info: A project has source code included and a solution has one or more projects included. A project can be contained in more than one solution. 

If you attempt to open a project with no solution open then Atmel will auto create a solution for you. It is of little use and can be ignored.
  
Back to top
IP Logged
 
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Re: Unable to create an Arduino project for ATmel Studio
Reply #23 - Jan 6th, 2014 at 11:54pm
Print Post  
Tim - the zip file you sent me did not contain a ccpproj file.  I am sending back the zip file via email.
  
Back to top
 
IP Logged
 
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Re: Unable to create an Arduino project for ATmel Studio
Reply #24 - Jan 7th, 2014 at 12:06am
Print Post  
I re checked - you did  not attach your zip file - I mistakenly reopened the one I sent you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #25 - Jan 7th, 2014 at 12:19am
Print Post  
Sorry, that makes sense now I have sent another email
  
Back to top
IP Logged
 
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Re: Unable to create an Arduino project for ATmel Studio
Reply #26 - Jan 7th, 2014 at 1:11am
Print Post  
Hi Tim

Everything looks fine when I open the project file with either method.  The build menu is present. The template .ino compiles.  I'll send a screen image.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #27 - Jan 7th, 2014 at 2:20pm
Print Post  
Thanks, I see from the screen image you have installed some custom hardware. The next release fixes a bug with custom hardware definitions that attempt to share the variants folder of the main Arduino Ide install.

You can fix this yourself but I suggest you wait for the next release (few days). Until then it would be best to test the system with a standard Arduino board such as the Uno. Maybe this is what you have done hence your report below of a working compile.

With this in mind maybe you can select the uno and re-test the project create but ensure you create a new sketch name each time you test so that we test the entire workflow. Sketch1, sketch2 etc

Your system seems to be working well apart from the auto create of new sketch projects. I am not sure why you had a problem creating a project manually in Atmel Studio. Maybe the next release will give better diagnostics.

So you have a working project which is simply a project and .ino file. Can you add another .ino to the project? Does that work using the Visual Micro right click project name in solution explorer menus "Add>Sketch Code"?

Thanks
  
Back to top
IP Logged
 
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Re: Unable to create an Arduino project for ATmel Studio
Reply #28 - Jan 7th, 2014 at 2:52pm
Print Post  
A couple of  issues have been raised by your last post.   

1. The list box of boards does not include a UNO.  I am in fact working with a Arduino Pro 328 3.3v - All of the boards listed specify [Optiboot]   Where is the source of the board info?

2. I tried adding my existing code as you suggested in the explorer menu by right clicking the project "add>  the choices all specify existing project or existing sketch project or new project - not surprisingly they won't work - the existing sketch project .ino returns the Unable to create msg.  The other choices require the selection of a project file which of course doesn't exist.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #29 - Jan 7th, 2014 at 3:08pm
Print Post  
Ahaha! This means that Visual Micro can't find your Arduino ide. It sounds like custom hardware is showing so when I asked if the boards menu was populated early on in our discussion you correctly answered yes but I didn't realise you had custom hardware installed which confused the issue.

Please confirm the location where you have installed the Arduino Ide, which version is it? 1.5.x or 1.0.5? It is important that the <Configuration Manager> on the boards list shows the correct path against the correct ide version???

Thanks



  
Back to top
IP Logged
 
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Re: Unable to create an Arduino project for ATmel Studio
Reply #30 - Jan 7th, 2014 at 3:09pm
Print Post  
SUCCESS!

I downloaded a fresh boards.txt file from Github and all is right with the world.  I don't know why my boards file was non- standard.   

Debugging is always an adventure.

Thanks for your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #31 - Jan 7th, 2014 at 3:10pm
Print Post  
Phew!!!!

Best of luck, normally debugging with Visual Micro is less of an adventure than this  Cheesy

I will add better error messages
« Last Edit: Jan 7th, 2014 at 3:11pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint