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
Very Hot Topic (More than 25 Replies) Unable to create an Arduino project for ATmel Studio (Read 29809 times)
MichaelA
Junior Member
**
Offline


Posts: 15
Joined: Jan 4th, 2014
Unable to create an Arduino project for ATmel Studio
Jan 4th, 2014 at 9:55pm
Print Post  
The Visual Micro has been installed. All the menu options are populated  - this message appears when I try to create a new Arduino Sketch or open a prior Arduino Sketch.

I am using Windows 7 x64, Atmel Studio 6.1, and Arduino for Windows 1.0.5. The list boxes in the studio are properly populated - I have successfully identified the location of the Arduino installation and the Sketch file location.

I have also installed the latest Visual studio and .Net updates from Microsoft.

I have also reset the computer uninstalled and reinstalled Visual Micro.

Very frustrating!! What's up??
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


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

Sorry to hear you are having these problems. 

Questions

Would you please confirm the full version number of Atmel Studio from the Help>About screen?

Confirm you can see a list of Arduino boards on the tool bar combo box and also on Tools>Visual Micro>Boards?

Thanks

A short term workaround might be to create an empty 8 bit AVR or a Sam project for any board in a folder of the same name, then delete all the automatically created project sources and add a .ino file of the same name. An 

The basic files required to use a Visual Micro Arduino project are no more than the things:- A directory/folder, project and .ino source all having the same name.

  
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 #2 - Jan 5th, 2014 at 12:13am
Print Post  
version: atmel studio 6 (version 6.1.2562)

Yes the boards are listed in both places. 

Will try the workaround.

Thankyou
  
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 #3 - Jan 5th, 2014 at 12:28am
Print Post  
tried the work around with the same result
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #4 - Jan 5th, 2014 at 2:59am
Print Post  
Hi,

Questions

1)
I don't understand exactly what you are saying. After creating an avr project you can open it using "file>open>project"? If it has the structure I mentioned then intellisense, add libraries, compile, add new sources, upload etc. should all work. The error you report shouldn't appear because you are not using Visual Micro menus to create the project. Let me know if I have missed something thanks.

2)
Can you please confirm what location is displayed when you attempt to use "File>Open>Arduino/Sketch Project". I want to check that your SketchBookFolder is being picked up correctly. I guess you have left it as default which would be "document/arduino"?

3)
Below the sketchbook folder, Visual Micro should have created a folder with the name you specified for each  new sketch project. Can you see folder names with the new sketch names you specified? 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #5 - Jan 5th, 2014 at 4:15pm
Print Post  
Continued ...

Sorry what I should have explained is that I am looking for a file/folder permissions problem that is preventing the creation of folders or files. 

Something obvious is causing this problem hence wanting to know about your sketchbook location.
« Last Edit: Jan 5th, 2014 at 4:16pm 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 #6 - Jan 5th, 2014 at 4:29pm
Print Post  
reply to 2) Yes the structure is created in the folder specified for my sketchbooks - it is the default c:\users\michael\mydocuments\arduino - a folder with the sketch name is created with a .ino file of the same name 

Studio 6 does this even though it states that a project cannot be created as I have stated previously

If I double click the .ino file in the Windows explorer - Studio 6 will open with the project name and the .ino file displayed. HOWEVER - the main menu items VAssistX and Build are missing.

The project cannot be opened directly from Studio 6 - the project cannot be opened message will appear.

re 1) If I create a C++ project and then add a .ino file - the compile menu option will disappear if the .ino is the active pane.  - I may be missing something in your instructions here

It seems as if these behaviors might indicate a permissions/missing code module problem - just a wild guess.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #7 - Jan 5th, 2014 at 4:38pm
Print Post  
Hi,

Thanks for the good info. Yes it's strange. Did you try running AS6.1 as administrator?

You say the VassistX is missing? Is it missing when you open an empty Atmel 6.1 ide (no files, projects or solutions open)?

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #8 - Jan 5th, 2014 at 4:44pm
Print Post  
ps: Here is the Visual Micro workflow when you create an Arduino project names "xyz"

1) Create "xyz" folder below sketchbook
2) Create "xyz.ino"
3) Copy empty .cppproj from Visual Micro install folder to "xyz" and rename to "xyz.cppproj"
4) Open the new cppproj and add/attach the xyz.ino file

The empty cpp project is usually in:-
C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Atmel Studio\Templates\Project\BlankCppProject

Is the .cppproj being copied into the new folder?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #9 - Jan 5th, 2014 at 4:50pm
Print Post  
Hi,

I have just re-looked at your Atmel Studio version number. I suggest upgrading to the latest release to see if this fixes the problem.

For our tests we are currently running the latest version (6.1.2730 - Service pack 2) of Atmel Studio. We only introduced support for Visual Micro in Atmel Studio last year so I hope this is simply a version problem.

You might need to re-install Visual Micro after the Atmel update. If Visual Micro loads and you have color code and intellisense in .ino files then the Visual Micro install is good.

Thanks
« Last Edit: Jan 5th, 2014 at 4:57pm 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 #10 - Jan 5th, 2014 at 6:13pm
Print Post  
I have updated Atmel Studio and reinstalled Visual Micro.

VAssistx now appears - code launched from the windows explorer is color coded correctly - BUILD menu is missing - cannot open new or existing sketch project from Studio 6 

Another pertinent fact might be that this machine also has an installation of microsoft visual studio 2010 version 10.0.40219.1 SP1Rel    VB2010

Can find no reference to Visual Micro within Visual Studio 2010 or any way of opening an arduino file.

Is there a possibility of conflict?

Can't figure a way to install Visual Micro into my version of Visual Studio either.

I use both Atmel Studio and Microsoft Visual Studio

Your continuing assistance is very much appreciated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


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

The VS installs do not conflict but Visual Micro will not work in an express version of Visual Studio. You can probably get an academy version of VS 2010/2012 Pro. If you are running pro then you need to ensure you have the VC++ module installed not just VB.

To be clear about a couple of things

1)
After the creation of a new project fails there is a .cppproj file in the new folder with the correct name? If so then please zip and email the contents of the folder with .ino and .cppproj to info [at] visualmicro.com

2)
Have you installed any other Atmel Gallery extensions?

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 #12 - Jan 6th, 2014 at 3:38pm
Print Post  
I Have emailed the requested zip file.

installed extensions include:

Atmel ARM GNU Toolchain
Atmel AVR (8 bit) GNU Toolchain
Atmel Gallery      
Atmel Kits
Atmel Software Framework
AtmelToolchain Provider
AVR macro Assembler
Create Project From Makefile
Visual Assist X for Atmel Studio


Add in's

Visual Micro Arduino

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #13 - Jan 6th, 2014 at 3:54pm
Print Post  
Thanks I have the zip.

It is now clear that the .cppproj I was asking about has not been created. The sketch directory shows 2 files. The arduino .ino source code and an Atmel Studio solution (.asln) but no project.

So we need to look at why the project has not been created. I explained below that when Visual Micro creates a new project it copies an existing empty project from the Visual Micro install folder to the sketch folder.

Before we continue, can you please confirm that this file exists on your machine "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Atmel Studio\Templates\Project\BlankCppProject". There is not need to open this file, please confirm it exists.

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 #14 - Jan 6th, 2014 at 4:07pm
Print Post  
Yes the CppProject exists in the correct path

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #15 - Jan 6th, 2014 at 4:11pm
Print Post  
Okay thanks. This sounds like the Ide is unable to copy the file when creating a new project.

In a couple of hours I email you a test sketch. It will contain an Atmel project ready to go so just needs to be opened. The result should show us what might be wrong.

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 #16 - Jan 6th, 2014 at 4:19pm
Print Post  
restating  the BlankCppProject.cppproj exists in the correct path
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #17 - Jan 6th, 2014 at 4:24pm
Print Post  
Yes thanks. Sounds like we have some strange and simple issues. 

The fact that Visual Micro is unable to copy the cpp to the newly created sketch folder is strange, we haven't had that before and have added better error reporting to this area for the next release.

I suspect other problems will surface when you attempt to open the sketch I send you later. The sketch we send you will already be setup to work in Atmel Studio so it can be opened with the standard Atmel File>Open>project/Solution. Once open we would expect Visual Micro to kick in and handle compilation etc.

I will also test some of the extensions you have listed below to see if there is a conflict.

Thanks for all the info
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create an Arduino project for ATmel Studio
Reply #18 - Jan 6th, 2014 at 7:16pm
Print Post  
Email sent with a sample Atmel sketch project for you to try. Interested to hear what happens, please send a screen shot after opening the project. 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 #19 - Jan 6th, 2014 at 9:08pm
Print Post  
Screen shots sent - not very interesting
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
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: 12191
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: 12191
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: 12191
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: 12191
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: 12191
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] 
Send TopicPrint