Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6 (Read 6935 times)
Defragster
Newbies
*
Offline



Posts: 8
there
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Feb 21st, 2015 at 9:48pm
 
Admin edit: This question relates to the new Teensyduino beta for Arduino 1.6


From that PDF I keep starting to follow but the actions don't match what I can find on my Visual Studio Community 2013 screens to complete item 2 and beyond the Highlighted names never appear to me?:

Step 2) To compile for a Teensy board we need to set three Teensy options which reflect the additional Tools menu options in the Teensyduino IDE (such as cpu speed, keyboard language).


•          Click the project in the solution explorer 
•          Click the menu View > Other Windows > "Properties Window" 
•          Edit Micro General > Defines Project as follows:-

Admin edit: Missing url to Visual Micro teensy page: http://www.visualmicro.com/page/Teensy-for-Microsoft-Visual-Studio.aspx
Back to top
« Last Edit: Feb 22nd, 2015 at 1:39pm by Visual Micro »  
 
IP Logged
 
Defragster
Newbies
*
Offline



Posts: 8
there
Re: ERROR compiling for Teensy 3.1
Reply #1 - Feb 21st, 2015 at 11:26pm
 
I have already downloaded this: AStudio6_2sp2_1548net.exe Is there any reason this would work better than Visual Studio Community 2013?

I pulled that off trying to resolve my other issue - but if it would work I'd put it back on.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ERROR compiling for Teensy 3.1
Reply #2 - Feb 22nd, 2015 at 12:36am
 
Hi,

Atmel and Visual studio offer the same features for Teensy. However access to the properties window can vary slightly.

The documentation on visualmicro.com has this page which might help you http://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Properties-Reference...

Thanks
Back to top
 
WWW  
IP Logged
 
Defragster
Newbies
*
Offline



Posts: 8
there
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Reply #3 - Feb 22nd, 2015 at 1:31am
 
Thanks - it said 'menu' so I went to the menu when the steps fell apart.  That link led me the right way it seems and  that got rid of the overwhelming number of errors and boiled down to a set of standard defines not found.

I am using the newest BETA Teensy loader and first release of Arduino 1.6 support, registered in Visual Studio as 'Arduino 1.5 +'

It seems some standard header is not being referenced in this code that worked as I saved it from the Arduino IDE -  Errors are Visual Studio 2013 "Intellisense: Identifiers:

pinMode, OUTPUT, Serial, LED_BUILTIN, delay, millis.

Three of which are on these two lines from an included Teensy example:
  pinMode(ledPin, OUTPUT);
  Serial.begin(38400);

Compiling 'T_HelloSerialMonitor' for 'Teensy 3.1'
:macro names must be identifiers
:ISO C99 requires whitespace after the macro name [enabled by default]
:"F_CPU" redefined [enabled by default]
:this is the location of the previous definition
Error compiling
Back to top
« Last Edit: Feb 22nd, 2015 at 1:46am by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Reply #4 - Feb 22nd, 2015 at 1:49am
 
Ok, haven't tried the new Teensy yet for 1.6. I will update the teensy page to say it is tested with 1.0.6. We should be able to test over the next few days.

Can you email a verbose compiler output from the teensy ide? Thanks
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Reply #5 - Feb 22nd, 2015 at 2:09am
 
I checked. Teensy does not support Arduino 1.6 yet.

You have to use 1.0.5 or 1.0.6

https://www.pjrc.com/teensy/td_download.html

Thanks
Back to top
 
WWW  
IP Logged
 
Defragster
Newbies
*
Offline



Posts: 8
there
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Reply #6 - Feb 22nd, 2015 at 2:37am
 
For now those are the details as I have them. On the first pile of errors it looked to be in the right TEENSY tree, and the errors I got went WORSE when I included a file that had the defines for some of the missing values, so it found that ".h" okay too.

Putting the Atmel Studio 6.2 back on and will see if it acts any differently.
Back to top
 
 
IP Logged
 
Defragster
Newbies
*
Offline



Posts: 8
there
Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Reply #7 - Feb 22nd, 2015 at 10:01am
 
As of last week - when I powered up my Teensy 3.1 units full support for 1.6 is in wide beta with the newest version of "TeensyDuino 1.21-beta 6" and is the only thing I've used since unwrapping mine. 

https://forum.pjrc.com/threads/27740-Arduino-1-6-0-any-plans-to-support-it

Also by Mid-March folks will have a new Teensy-LC in their hands. Final Beta boards are out with March 10 the expected release date.  It goes along with the above software updates.  It is a <$12 version Teensy 3.1 layout with M0 instead of M4 class MCU and corresponding reduced specs.
Back to top
« Last Edit: Feb 22nd, 2015 at 10:07am by Defragster »  
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print