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
Hot Topic (More than 8 Replies) Teensyduino Alpha config problem (Read 12841 times)
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Teensyduino Alpha config problem
Mar 3rd, 2013 at 4:44pm
Print Post  
I install the Teensyduino Alpha Visual Micro Plugin (1301.14) from here http://visualmicro.codeplex.com/releases/view/100355, i do all steps.
But when i look for "Tools>Options>Visual Micro>Locations>Arduino", i find only "Tool>Options>Visual Micro>", and no "Locations", can you give me screenshot where i can found this option?  Roll Eyes

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensyduino Alpha config problem
Reply #1 - Mar 3rd, 2013 at 8:17pm
Print Post  
Teensyduino is arduino
  
Back to top
IP Logged
 
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Re: Teensyduino Alpha config problem
Reply #2 - Mar 4th, 2013 at 8:16am
Print Post  
Tim@Visual Micro wrote on Mar 3rd, 2013 at 8:17pm:
Teensyduino is arduino


What does it mean?
  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Teensyduino Alpha config problem
Reply #3 - Mar 4th, 2013 at 8:27am
Print Post  
You have to set the location of your Arduino installation for VM to find it.

Teensy is and Arduino type product and needs to use the Arduino environment to be programmed.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensyduino Alpha config problem
Reply #4 - Mar 4th, 2013 at 11:56am
Print Post  
Hi, sorry I misread the question.

Please click the "Visual Micro" branch that you have mentioned on the left side of the options window.

After you click the words "Visual Micro" you will see options appear on the "Right" side of the window.

The "Arduino Location" is at or near the top of the list on the right hand side.

Can you see the options on the right when you click "Visual Micro"?
  
Back to top
IP Logged
 
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Re: Teensyduino Alpha config problem
Reply #5 - Mar 4th, 2013 at 12:36pm
Print Post  
Tim@Visual Micro wrote on Mar 4th, 2013 at 11:56am:

The "Arduino Location" is at or near the top of the list on the right hand side.
Can you see the options on the right when you click "Visual Micro"?


Yes i see the options, but i so only "Arduino Application" path. And no "Arduino Locations"
This path is point to Arduino folder.
I must change this value? But this path to arduino.exe and cannot be change to another IDE  Undecided
« Last Edit: Mar 4th, 2013 at 12:38pm by EvgeniK45 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensyduino Alpha config problem
Reply #6 - Mar 4th, 2013 at 4:15pm
Print Post  
Yes the docs need a bit of work. 

The recommended teensyduino version is the 1.0.3 beta, I haven't checked if it has been fully released yet but when I used it last it had an arduino.exe as the program file name  Smiley Which version do you have and what is the name of the .exe?

Thanks
  
Back to top
IP Logged
 
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Re: Teensyduino Alpha config problem
Reply #7 - Mar 4th, 2013 at 4:36pm
Print Post  
ArduinoForVisualStudio_1301_14.msi, downloaded from here: http://visualmicro.codeplex.com/releases/view/100355
I like to work in VisualStudio and i use Teensy 3.0, in my project, but i can't use int together  Cry
For this case i have to debug on Arduino Leonardo, and then compile under Aeduino software for Teensy.
Not good way.  Undecided
Help me please!!!  Roll Eyes
« Last Edit: Mar 4th, 2013 at 4:43pm by EvgeniK45 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensyduino Alpha config problem
Reply #8 - Mar 4th, 2013 at 6:29pm
Print Post  
Hi,

Quote:
I like to work in VisualStudio and i use Teensy 3.0, in my project, but i can't use int together


Please try to explain a little more detail of what does not work for Teensy. 

Do you see Teensy Boards in Visual Studio?
Does the compile fail?
Have you set the correct project defines? If so what are they?

Maybe this Teensy Help from the wiki will be useful?

Quote:
For this case i have to debug on Arduino Leonardo, and then compile under Aeduino software for Teensy


I am trying to understand what this means. 

Are you saying that standard Arduino Leonardo compile fails when Teensy is installed as the arduino.exe? 

Teensy supports both Arduino and Teensy boards. You should see both Teensy and Arduino boards in the Visual Studio boards lists?

Maybe you have found a difference between Arduino.10.3 and Teensy for Leonardo compile? If so then replace "TeensyIDE\Hardware\Arduino" with "ArduinoIDE\Hardware\Arduino".

Summary

I have tried to guess the problems you are having please explain more if this does not help.

Future versions of the plugin will support multiple different Ide and boards lists. However I am using the current version with teensyduino to compile and upload both Arduino and Teensy programs so hopefully you can too  Smiley
  
Back to top
IP Logged
 
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Re: Teensyduino Alpha config problem
Reply #9 - Mar 5th, 2013 at 5:52am
Print Post  
Hello, and thank you for your attention to my question!
Excuse me for my bad English, I'll try to explain everything in detail.
For the purity of the experiment I installed everything from scratch, namely:

1. Arduino IDE 1.0.3, from here - http://arduino.cc/en/Main/Software;
2. Teensyduino, Version 1.12, from here - http://www.pjrc.com/teensy/td_download.html;
3. Install Teensyduino software in Arduino IDE folder;
4. Try to compile project for Teensy 3.0 board under Arduino IDE - all compiled, flushed to the doard and works!
5. Download Visual Micro Plugin (1301.14), from here - http://visualmicro.codeplex.com/releases/view/100355
6. Install under MS Visual Studio 2012
o.k.
I start Visual Studio 2012, go to Tools/Options/Visual Micro
I so this picture:
https://docs.google.com/file/d/0B-_e-jRDz7k0WDR0S0xRMjJIZGM/edit?usp=sharing

o.k.,I put the settings for the export to Teensy
https://docs.google.com/file/d/0B-_e-jRDz7k0SzN4cURsSklTeDQ/edit?usp=sharing

https://docs.google.com/file/d/0B-_e-jRDz7k0Yms1eFlsMzJxdEU/edit?usp=sharing

and try to compile...
I get the following compiler errors:
Compiling 'x' for 'Teensy 3.0'
Build folder: file://D:\....\x
SketchLibFolders
C:\Program Files (x86)\Arduino-1.0.3\hardware\teensy\cores\teensy3;c:\program files (x86)\arduino-1.0.3\hardware\tools\avr\avr\include\;c:\program files (x86)\arduino-1.0.3\hardware\tools\avr\avr\include\avr\;c:\program files (x86)\arduino-1.0.3\hardware\tools\avr\avr\;c:\program files (x86)\arduino-1.0.3\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=13 Imports=0
Additional Defines: FCPU=96000000;USBSERIAL;LAYOUTUSENGLISH ;VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\Arduino-1.0.3\hardware\tools\arm-none-eabi\bin\
C:\Program Files (x86)\Arduino-1.0.3\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -felide-constructors -std=gnu++0x  -mthumb -nostdlib -D__MK20DX128__  -fno-rtti -DFCPU=96000000 -DUSBSERIAL -DLAYOUTUSENGLISH= -DVISUALMICRO_COMPILER_VER=1 -I"C:\Program Files (x86)\Arduino-1.0.3\hardware\teensy\cores\teensy3" "D:\Users\.....\AppData\Local\VMicro\Arduino\Builds\x\x.cpp" -o "D:\Users\......\AppData\Local\VMicro\Arduino\Builds\x\x.cpp.o"
wiring.h : In file included from
WProgram.h : from
arduino.h : from
x.ino : from
core_pins.h : : In function 'void delayMicroseconds(uint32_t)':
core_pins.h : 'n' was not declared in this scope
WProgram.h : In file included from
arduino.h : from
x.ino : from
HardwareSerial.h : : In member function 'void HardwareSerial::begin(uint32_t)':
HardwareSerial.h : 'F_CPU' was not declared in this scope
HardwareSerial.h : : In member function 'void HardwareSerial2::begin(uint32_t)':
HardwareSerial.h : 'F_CPU' was not declared in this scope
HardwareSerial.h : : In member function 'void HardwareSerial3::begin(uint32_t)':
HardwareSerial.h : 'F_BUS' was not declared in this scope
usb_keyboard.h : In file included from
WProgram.h : from
arduino.h : from
x.ino : from
keylayouts.h : : At global scope:
keylayouts.h : 'KEYCODE_TYPE' does not name a type
keylayouts.h : 'KEYCODE_TYPE' does not name a type
x.ino : : In function 'void loop()':
x.ino : Warning: unused variable 'me' [-Wunused-variable]
x.ino : : At global scope:
x.ino : 'void HT1632C_Send_Data(int, byte, byte)' defined but not used [-Wunused-function]
Error compiling

if I try to compile for Arduino Leonardo, no problem:
What i'm doing wrong?  Undecided
« Last Edit: Mar 5th, 2013 at 6:00am by EvgeniK45 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensyduino Alpha config problem
Reply #10 - Mar 5th, 2013 at 8:31am
Print Post  
this looks wrong

Code
Select All
DLAYOUTUSENGLISH=  



Check you have your project defines accurate.
  
Back to top
IP Logged
 
EvgeniK45
Junior Member
**
Offline


Posts: 15
Location: Russian Federation
Joined: Jan 20th, 2013
Re: Teensyduino Alpha config problem
Reply #11 - Mar 5th, 2013 at 10:16am
Print Post  
Oh! Thank you very much!
I Found in what direction to dig!

I stupidly copied the settings from this page:
http://visualmicro.codeplex.com/releases/view/100355 - FCPU=96000000;USBSERIAL;LAYOUTUSENGLISH

But in fact i dig for that: F_CPU=96000000;USB_SERIAL;LAYOUT_US_INTERNATIONAL

It works!  Wink
« Last Edit: Mar 5th, 2013 at 10:35am by EvgeniK45 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensyduino Alpha config problem
Reply #12 - Mar 5th, 2013 at 12:47pm
Print Post  
Excellent, thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint