VS Arduino
>> >> Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
https://www.visualmicro.com/forums/YaBB.pl?num=1424555313

Message started by Defragster on Feb 21st, 2015 at 9:48pm

Title: Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Post by Defragster on 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

Title: Re: ERROR compiling for Teensy 3.1
Post by Defragster on 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.

Title: Re: ERROR compiling for Teensy 3.1
Post by Visual Micro on 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.html

Thanks

Title: Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Post by Defragster on 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

Title: Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Post by Visual Micro on 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

Title: Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Post by Visual Micro on 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

Title: Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Post by Defragster on 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.

Title: Re: ERROR compiling for Teensy 3.1 with Arduino 1.6
Post by Defragster on 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.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.