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 29014 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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint