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 TimerOne Library in Visual Studio 2015 (Read 7050 times)
GeorgeN
Newbies
*
Offline


Posts: 4
Joined: Sep 14th, 2015
TimerOne Library in Visual Studio 2015
Dec 31st, 2015 at 6:18pm
Print Post  
I have been using Visual Studio with Arduino 1.6.5 R5,  Teensyduino 1.25 , and the one of the latest Visual Micro plugins (Win7 X64). Overall I like the experience and would like to continue using the Visual Studio for my Teensy 3.1 programming. 

One of my projects requires the use of TimerOne library which Visual Studio cannot locate despite it being installed in the same directory as other libraries which it can find just fine. When I try to reinstall the library from the Visual Micro tools menu it says it is already installed. When I try to add library it is not on the list of the installed libraries and also when insert “#include <TimerOne.h> “ line in the code it returns :
Compiling debug version of 'MedianFilter_03' for 'Teensy 3.2 / 3.1'
MedianFilter_03.ino:2:22: fatal error: TimerOne.h: No such file or directory
:#include <TimerOne.h>
:compilation terminated
Error compiling project sources

Upon closer inspection few other libraries are missing on the list : AltSoftSerial, FastCRC, and LowPower.
I tried putting the TimerOne library in the C:\Users\user123\Documents\Arduino\libraries with other libraries and that did not work.
Please let me know if anybody has any suggestions.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: TimerOne Library in Visual Studio 2015
Reply #1 - Dec 31st, 2015 at 7:53pm
Print Post  
Hi,

Please switch on tools>options>visual micro>system>trace. Then click "tools>visual micro>reload toolchains" and post or email the output to info[at]visualmicro.com

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: TimerOne Library in Visual Studio 2015
Reply #2 - Jan 2nd, 2016 at 5:31pm
Print Post  
Fixed in the new release that has just been published (1601.01).

Some Teensy3 libraries are marked as avr for historic reasons. Visual micro now supports multiple library filter architectures per board which are determined from board config and physical location (ie: cores\avr\teensy3).

Thanks for the post
  
Back to top
IP Logged
 
GeorgeN
Newbies
*
Offline


Posts: 4
Joined: Sep 14th, 2015
Re: TimerOne Library in Visual Studio 2015
Reply #3 - Jan 3rd, 2016 at 9:51pm
Print Post  
Hi,

Thanks a lot for helping with this. I installed the latest Visual Micro for VS 2015 and tried to run couple of programs that use Timer One library. Unfortunately it seems that updated Visual Micro did not solve the problem for me. 

Please see trace outputs I captured:


//Trace mesagge on Visual Studio Startup
Application      Begin
Status      Application - Extenders Created
Mode      AfterStartup
Status      AddinKickOff - Setup temp commands required
Status      AddinKickOff - Command event obtained
Status      Launched - Mcu Init
Info      MyVisualMicro location C:\Users\nikolic\Documents\Visual Micro
Status      Available application configuations =  11
Status      Launched. Application configurations loaded = 11
Create UI command items      Begin
Create UI command items      End
Launch      Complete
Get      CustomToolBarObjects
Intellisense: Refresh for project
Intellisense: Refresh for project

//Trace Mesaage on application complie
Compiling debug version of 'Interrupt' for 'Teensy 3.2 / 3.1'
Interrupt.pde:1:22: fatal error: TimerOne.h: No such file or directory
:#include <TimerOne.h>
:compilation terminated
Error compiling project sources

//Trace on application compile
ExecIn: Visual.Micro.Visual.Studio.Arduino.Helper.SketchCompile
Helper.ExecCommand: Visual.Micro.Visual.Studio.Arduino.Helper.SketchCompile
Reset Compiler Window Pane
Activate Compiler Window Pane
40:20 Compile Started
40:20 Runtime settings saved
40:20 Compile settings saved
40:20 Debug build begin
40:20 Breakpoints loaded
40:20 Loaded debug sketch builder
40:20 Build debug sketch complete
40:20 Created debug arduino sketch compiler
40:20 Loaded debugger extensions

//Trace message after Toolchain Reload (it seems to deafault to Arduion Yun)
// It complies the code for Arduino Yun but after I select Teensy 3.1/3.2 it again has trouble finding the Timer 
ExecIn: Visual.Micro.Visual.Studio.Arduino.Helper.ToolsReloadCurrentCore
Helper.ExecCommand: Visual.Micro.Visual.Studio.Arduino.Helper.ToolsReloadCurrentCore
Info      MyVisualMicro location C:\Users\nikolic\Documents\Visual Micro
Status      Available application configuations =  11
Intellisense: Refresh for project
Compiler Defs have changed: INO_ARCH_AVR;USB_SERIAL;LAYOUT_US_ENGLISH;__cplusplus
RDUINO_ARCH_AVR;{build.usbtype};LAYOUT_{build.keylayout};__cplusplus

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: TimerOne Library in Visual Studio 2015
Reply #4 - Jan 4th, 2016 at 12:07am
Print Post  
ok I#ll take a look thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: TimerOne Library in Visual Studio 2015
Reply #5 - Jan 4th, 2016 at 2:59am
Print Post  
1601.4 contains a fix

Sorry about that
  
Back to top
IP Logged
 
GeorgeN
Newbies
*
Offline


Posts: 4
Joined: Sep 14th, 2015
Re: TimerOne Library in Visual Studio 2015
Reply #6 - Jan 4th, 2016 at 5:30pm
Print Post  
Thanks a lot. Version 1601.04 fixed the problem with TimerOne library.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint