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
Hot Topic (More than 8 Replies) Message: Unable to create an Arduino project for ATmel Studio (Read 24068 times)
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Message: Unable to create an Arduino project for ATmel Studio
Feb 20th, 2014 at 8:43am
Print Post  
I am using Atmel Studio 6.1 (6.1.2730 - SP2) under Windows 8.1.  I have just upgraded VisualMicro to 1.1401.26.  When I try to create a new project, I get the message 'Unable to create an Arduino project for ATmel Studio'.  My path to the Arduino IDE for 1.5.x (1.5.5-r2) is correctly specified.  Micro Explorer displays all the relevant boards for Arduino 1.5x, but the 'Boards' menu item under Tools/Visual Micro is disabled.

What is the problem?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #1 - Feb 20th, 2014 at 2:31pm
Print Post  
Hi Roger,

If you have a "tools>visual micro>reset user interface" please click it and see if that fixes the problem.

If not then try running the install and click remove, then run again and click install

Failing that please enable tools>options>user interface>trace and then re-start the ide then post the output that appears in the output window (might require running as administrator if you see an error).

  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #2 - Feb 20th, 2014 at 2:53pm
Print Post  
Here is the trace:

CreateCommandBarItemsPerm      Begin AddinVer=1.1401.26
Permanent Items Setup Requested       - Exiting setup because some controls already exist
CreateCommandBarItemsPerm      End
Create UI command items      Begin
CreateCommandBarItems      Begin AddinVer=1.1401.26
Get Bar      Tools
Create Bar      Tools>Arduino
Adding      Tools>Ports
Adding      Tools>Other Ports
Adding      UI Menu-Board-Items
Adding      UI Menu-SerialPort-Items
Adding      Creating project menu libraries for platform
Adding      ToolBar-Lib-Items
Create UI command items      End
  
Back to top
 
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #3 - Feb 27th, 2014 at 8:25am
Print Post  
Is there no solution to this problem?  Is there any further information I can supply?  For me, VisualMicro is unusable.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #4 - Feb 27th, 2014 at 11:38am
Print Post  
Hi Roger,

Sorry forgot this one.

please confirm if you tried "tools>visual micro>reset user interface"?

If that doesn't fix it then we should assume the upgrade didn't go on properly. Please close atmel studio, run the vm installer and click "Remove" then run again and click Install

Thanks

« Last Edit: Feb 27th, 2014 at 11:39am by Tim@Visual Micro »  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #5 - Feb 27th, 2014 at 3:36pm
Print Post  
I closely followed your instructions given on the 20th.  I reset the user interface, I removed the upgrade and re-installed.  I have repeated these steps and the problem has not gone away.  I have investigated (as far as possible) that nothing in my file system or anti-virus product is preventing access to any likely folders (sketch folder, AppData, etc.).

I have no idea if it is relevant, but I had some problems with other products after installing Windows 8.1 because Microsoft decided to create a completely new "Users" subfolder for my login.  Could there be any stored references to my Users folder that would point to my original folder when first installed (and which is no longer accessible with normal privileges)?  BTW, I have tried running Atmel Studio as Administrator, but it makes no difference.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #6 - Feb 27th, 2014 at 3:44pm
Print Post  
Hi Roger,

Well done for thinking of so much it is always a frustration when things like this happen.

When Visual Micro creates a new project it copies a blank .cppproj that is installed with the Visual Micro program files. Then Visual Micro attempts to rename the project then add the .ino file(s).

So it should be quite a painless exercise.

After the problem happens please look in the folder of the same name as the sketch you were trying to create. Does the folder exist? Does it contain any files? If there a [sketchname].cppproj? If there is a folder with a .cppproj file what name does the .cppproj have? Can you please zip and email thanks.
« Last Edit: Feb 27th, 2014 at 3:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #7 - Feb 27th, 2014 at 3:56pm
Print Post  
Where do I find the email address?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #8 - Feb 27th, 2014 at 3:56pm
Print Post  
Sorry it is info [at] visualmicro.com
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #9 - Feb 27th, 2014 at 3:58pm
Print Post  
Question. You said you have just upgraded Visual Micro. Was the previous version working okay with your current Atmel and windows setup?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #10 - Feb 27th, 2014 at 4:19pm
Print Post  
Thanks for the zip.

The .cppproj does not exist in the zip you sent.

So we can see that Visual Micro has been unable to copy the blank project into the new sketch folder which is strange.

Can you please confirm "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Atmel Studio\Templates\Project\BlankCppProject\BlankCppProject.cppproj" exists?

The installer should have created it automatically. If it doesn't exist my next suggestion will be to download the .msi installer. Click and run selecting "Remove", then right click and "run as administrator" selecting Install

Thanks
« Last Edit: Feb 27th, 2014 at 4:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #11 - Feb 28th, 2014 at 8:06am
Print Post  
Although I didn't use Visual Micro for a month or two, it was working previously. 

The cppproj file did/does exist.  I have re-downloaded the msi, removed the installation and re-run the msi as administrator - actually I had to run the command prompt as administrator and then launch the msi as windows 8.1 does not have a right-click "run as administrator" option for msi files.  The cppproj file definitely exists and I am able to copy it manually to the project folder.  However, I still get the error message when trying to "Open" the existing project.

Incidentally, double-clicking on the original cppproj file in the Program Files folder pops up a message that Atmel Studio does not have sufficient privilege to open the project at that location - but I assume this is quite normal.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #12 - Feb 28th, 2014 at 1:30pm
Print Post  
Okay thanks.

All this sounds like permissions, nothing has changed between versions as far as this area is concerned.

When you copy the project file manually to the location and rename it to match the sketch folder and sketch.ino name does the open still fail?


  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #13 - Feb 28th, 2014 at 2:56pm
Print Post  
That was a step I missed.  After renaming the manually copied file, the project opens normally.

If this is a permissions issue, do you have any suggestions on how to diagnose where the problem lies?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #14 - Feb 28th, 2014 at 3:03pm
Print Post  
Thanks for the feed back.

So File>New>Sketch still fails? This means that Visual Micro is unable to copy the .cppproj to the sketch folder and this must be related to the permissions configuration of your folders. I haven't seen this before but the answer should be clear if you look at your folder permissions. Sorry can't be more specific.

It sounds like that once the .cppproj file is in the folder it works okay so Visual Micro does not have a permissions problem with the sketch folder just with the program files folder

It might be that now you have installed Visual Micro as administrator you can run atmel studio as admin and it will work correctly? Again this would show a strange permissions configuration relating to program files on your pc.

If it continues to fail you can create new sketches using this alternative http://www.visualmicro.com/page/Atmel-Studio-Create-new-project-templates-for-Ar... but existing ones will still need you to add a .cppproj manually to the sketch folder.

I hope this helps

edit: thought strikes me that you simply do not have permissions for your program files folder. Can you right click the folder and give yourself read/copy etc. permissions. If it helps here are the permissions listed against folders in my program files folder

ALL APPLICATION PACKAGES - read-exec/list/read
Users (PC NAME)\Users) read-exec/list/read
CREATOR OWNER special full control
SYSTEM gets everything
Admin gets everything
Trusted installer list/special

« Last Edit: Feb 28th, 2014 at 3:13pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #15 - Feb 28th, 2014 at 3:11pm
Print Post  
I have examined the properties of all folders in the path to the cppproj file, from the root.  All users have read permissions (plus read and execute), so I don't see why the file cannot be copied. Likewise, all users have full control over the sketch folders, so renaming should not be a problem.  OK, so there are convoluted ways round the issue.

But why (having opened a sketch) is my "Visual Micro/Boards" menu item still disabled with a tooltip saying "adding child menus to this item will enable it"?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #16 - Feb 28th, 2014 at 3:15pm
Print Post  
If the boards are missing your Arduino exe path is wrong or some other path is wrong

What ide path have you set against which Arduino option? arduino 1.0.x or arduino 1.5.x?

What have you set for the sketchbook folder if anything?
« Last Edit: Feb 28th, 2014 at 3:17pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #17 - Feb 28th, 2014 at 3:29pm
Print Post  
I only have one Arduino.exe, which is in C:\Program Files (x86)\Arduino, so I have that path for both 1.0.x and 1.5.x.  My sketchbook folder is is in <My Documents>\Arduino\Projects.  I will email an image with salient points.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #18 - Feb 28th, 2014 at 3:41pm
Print Post  
Thanks got the image it all looks okay. 

1)
I assume you tried the "Reset user Interface" option sorry if you have already confirmed this

2)
What about the "projects>add/import sketch library" menu? Do you see all your core and user libraries? Same list as the arduino ide?

3)
When a sketch is open do you have intellisense and can you compile and upload okay?

4)
Do you see the list of boards on the tool bar?

5)
Do you see the applications list on the tool bar. Is that where you have set the arduino 1.5.x location from or did you set it via tools options? It doesn't matter which option you used I am just keen to know the state of the tool bar

6) If you plugin a board does the serial monitor list enable on the tools menu?

7)
If you switch on tools>options>visual micro>user interface>trace and re-start the ide do you see any error reported in an output window?

Thanks
  
Back to top
IP Logged
 
Roger G
Junior Member
**
Offline


Posts: 11
Joined: Oct 5th, 2013
Re: Message: Unable to create an Arduino project for ATmel Studio
Reply #19 - Feb 28th, 2014 at 4:00pm
Print Post  
This is strange.  I tried to do a "Build" and got an error message, but guess what?  Now my menu items are populated!

However, on trying to upload, I get

Compiling debug version of 'vmtest' for 'Arduino Leonardo'
Binary sketch size: 5652 bytes (used 20% of a 28672 byte maximum) (0.33 secs)
Minimum Memory Usage: 242 bytes (9% of a 2560 byte maximum)
Uploading to I/O board using 'avrispmkii'
avrdude: usbdev_open(): did not find any USB device "usb"

I'm sorry to be taking up so much of your time, but I think we're making progress.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint