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 Problems with VS2010 and Teensy Installation (Read 6219 times)
Roger M
Newbies
*
Offline


Posts: 3
Joined: Jul 16th, 2014
Problems with VS2010 and Teensy Installation
Jul 16th, 2014 at 9:47am
Print Post  
I am trying to run visual micro for a Teensy 3.1 on Win 8.0 with VS2010. I have installed the Arduino IDE and TeensyDuino and can compile and download in the Arduino IDE.
When I install Visual Micro and use VS2010. The Teensy is present and seen but,
1. I cannot see the options in the property window to set the board options as directed. The property list stops at "Validation Skip". (In Alpha order)
2. When I try a build it often fails( ? library itewms) not in scope) but not always. When the build succeeds the download fails!

I have done complete reinstallations and still the same problem - it also happens with Atmel studio 6.2. Something is not installing properly. Any ideas or advice welcome. Can give lots more detail but this might allow you to tell me how I am being stupid!

On another post I noticed a comment about permissions - I am logged in with supervisor rights. Any further advice on this?

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with VS2010 and Teensy Installation
Reply #1 - Jul 16th, 2014 at 11:43am
Print Post  
Hi,

Thanks for the post. Sorry about the confusion.

In Alpha order the properties that you need will be at the very top of the list not the bottom.

What are the two properties that you can see at the top of the list

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with VS2010 and Teensy Installation
Reply #2 - Jul 16th, 2014 at 11:53am
Print Post  
Hi can you please supply an image of the files in the sketch folder.

The image you have provided below shows the sketchbook folder so all we see is directories.

What we see in your screen shot is an empty solution. Vs allows multiple projects in a single solution so it always starts with a solution.

Visual Micro should have automatically added a new project to the solution when the sketch was first opened or created.

It might indicate a permissions problem if Visual Micro fails to add a project to the solution

You can do this manually to try it out. Right click the solution name and click "Add>Existing project" then see if there is a vcproj (project) file in the test sketch folder. If there is a a project file then it should add to the solution without a problem? If it does then it should contain the .ino sketch sources if not right click the project and select "add>existing item" and select the master sketch.ino (test1.ino). This should leave you with a solution containing one project and your sources.

It is also possible that you do not have a version of VS with C++ installed in which case Visual Micro will not be able to create new projects. You can test this by click "File>New project" and then selecting to create an empty C++ Win32 project. This needs to work otherwise Visual Micro will not.

I hope this info help. A screen shot of the sketch folder will certainly help

  
Back to top
IP Logged
 
Roger M
Newbies
*
Offline


Posts: 3
Joined: Jul 16th, 2014
Re: Problems with VS2010 and Teensy Installation
Reply #3 - Jul 16th, 2014 at 12:01pm
Print Post  
I've cracked it! Not absolutely sure what made the difference but here are the things that I did,

1. The aduino ide was installed in the C:\program Files(86) directory. Win 8 made this "read only" - I cancelled this.  Found the same flag in the  Documents\Arduino directory and cancelled this also. Result: More builds worked but downloads still failed.

2. Found that I needed to "reload tool chains" from Menu: Visual Micro(Teensy). It seemed as though I needed to "Configure IDE Locations" again after this. Result: Builds now worked but download still failed.

3. Checked the Visual Micro document on how to add the defines and realised that I had misread the instructions. Added the correct project defines for Teensy 3.1. Still wouldn't download.  Saved the solution to disk.

4.  Close VS and reopened. Solution compiled but wouldn't download.  Cleaned solution and low and behold success a compile and build.  Resaved solution to disk. NB The Arduino loader popped up this time (never had before) and invited me to "press the button.

5. Closed and re-opened VS.  It still works!

Some the above actions appear like snake oil but they do seem to make things work.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with VS2010 and Teensy Installation
Reply #4 - Jul 16th, 2014 at 12:10pm
Print Post  
Hi,

The read-only of the program files folder would make a big difference especially if you have set your sketch book folder to program files. Normally sketch book will default to mydocument/arduino so the setting is best left empt or changed to somewhere that has normal permissions.

You will certainly have issues if you try to save source code to program files.

The build clean is probably a result of compiler cache with previously incorrect or missing settings. There are some project options such as "Micro Optimization>Defines affect core" and "defines affect libraries" which you can switch on if you change the defines for Teensy regularly. We are considering making the default On but in the meantime either switch these on or do a Build>Clean after the defines change.

I don't think that anything else affected all of this.
  
Back to top
IP Logged
 
Roger M
Newbies
*
Offline


Posts: 3
Joined: Jul 16th, 2014
Re: Problems with VS2010 and Teensy Installation
Reply #5 - Jul 18th, 2014 at 9:49pm
Print Post  
Running like clockwork now!
Can I suggest that you revise the formatting of the instructions on how to edit in the Teensy board settings.  I got confused by the fact that the operation (Edit) and the menu item were both in italics.  It would be clearer if the operation was in regular case.

I know this is dumb of me but the misconception might not have occurred with the different formatting.  The info is all there but I read it wrong.
Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with VS2010 and Teensy Installation
Reply #6 - Jul 19th, 2014 at 11:44am
Print Post  
Yes that makes sense. Will do thanks.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint