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) Intellisense not working with Teensy 3.0 (Read 20727 times)
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Intellisense not working with Teensy 3.0
Nov 28th, 2013 at 5:32am
Print Post  
Hi
I just did a fresh install of VS 2010 and VM. I have started a new project with Teensy 3 and found that the intellisense does not work. If I switch the board to Uno, it works but if I switch back it is gone again.
The project compiles and downloads fine.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #1 - Nov 28th, 2013 at 12:53pm
Print Post  
Have you added the teensy compiler defines to project properties?

What is displayed in the vsarduino.h?
« Last Edit: Nov 28th, 2013 at 12:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Intellisense not working with Teensy 3.0
Reply #2 - Nov 28th, 2013 at 2:55pm
Print Post  
Tim
I think they are all done correctly as the sketch compiles OK.
Here is the contents of the vsarduino.h file

Code
Select All
#ifndef _VSARDUINO_H_
#define _VSARDUINO_H_
//Board = Arduino Uno
#define __AVR_ATmega328P__
#define
#define ARDUINO 105
#define ARDUINO_MAIN
#define __AVR__
#define F_CPU 16000000L
#define F_CPU 96000000
#define USB_SERIAL
#define LAYOUT_US_ENGLISH
#define __cplusplus
#define __inline__
#define __asm__(x)
#define __extension__
#define __ATTR_PURE__
#define __ATTR_CONST__
#define __inline__
#define __asm__
#define __volatile__

#define __builtin_va_list
#define __builtin_va_start
#define __builtin_va_end
#define __DOXYGEN__
#define __attribute__(x)
#define NOINLINE __attribute__((noinline))
#define prog_void
#define PGM_VOID_P int

typedef unsigned char byte;
extern "C" void __cxa_pure_virtual() {;}

//
//
boolean getMessageFromSerial();
void myGenieEventHandler(void);

#include "c:\Arduino\hardware\arduino\variants\standard\pins_arduino.h"
#include "c:\Arduino\hardware\arduino\cores\arduino\arduino.h"
#include "C:\Users\mariusl\Documents\Arduino\MPG_pendant\MPG_pendant.ino"
#endif
 

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #3 - Nov 28th, 2013 at 3:02pm
Print Post  
Hi Marius

The vsarduino is not used during compile it serves only to kick start VS intellisense.

The details you posted are for the arduino please post after selecting Teensy 3.0

Thanks
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Intellisense not working with Teensy 3.0
Reply #4 - Nov 28th, 2013 at 3:05pm
Print Post  
Sorry, I had it switched to Uno so that I can work.

Code
Select All
#ifndef _VSARDUINO_H_
#define _VSARDUINO_H_
//Board = Teensy 3.0
#define __ARM-NONE-EABI_MK20DX128__
#define
#define ARDUINO 105
#define ARDUINO_MAIN
#define __AVR__
#define F_CPU 96000000
#define USB_SERIAL
#define LAYOUT_US_ENGLISH
#define __cplusplus
#define __MK20DX128__
#define __inline__
#define __asm__(x)
#define __extension__
#define __ATTR_PURE__
#define __ATTR_CONST__
#define __inline__
#define __asm__
#define __volatile__

#define __builtin_va_list
#define __builtin_va_start
#define __builtin_va_end
#define __DOXYGEN__
#define __attribute__(x)
#define NOINLINE __attribute__((noinline))
#define prog_void
#define PGM_VOID_P int

typedef unsigned char byte;
extern "C" void __cxa_pure_virtual() {;}

//
//
boolean getMessageFromSerial();
void myGenieEventHandler(void);

#include "c:\Arduino\hardware\teensy\cores\teensy3\arduino.h"
#include "C:\Users\mariusl\Documents\Arduino\MPG_pendant\MPG_pendant.ino"
#endif
 

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #5 - Nov 28th, 2013 at 3:27pm
Print Post  
Thanks. I'll release a new version over the next few weeks. The CPU name is wrong for the vs system with the dash __ARM-NONE-EABI_MK20DX128__

Sorry, for now I suggest using the 2560 board until you need to upload then switch to Teensy 3.0

Sorry!
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Intellisense not working with Teensy 3.0
Reply #6 - Nov 28th, 2013 at 3:41pm
Print Post  
Sure no problem, thanks a lot man. Cool
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #7 - Dec 17th, 2013 at 9:22pm
Print Post  
Fixed in the next release due over the next week or so. 

Thanks for the report (and help),sorry for the delay
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #8 - Jan 10th, 2014 at 12:20pm
Print Post  
Pre-release fixes here https://visualmicro.codeplex.com/releases/view/117112

Sorry for the delay
  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Intellisense not working with Teensy 3.0
Reply #9 - Jan 12th, 2014 at 7:30am
Print Post  
The intellisense is now working with teasyduino but it gives a lot of errors in _types.h, avr_functions.h, core_pins.h, ++. It compiles without errors.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #10 - Jan 12th, 2014 at 11:29pm
Print Post  
Hi,

Thanks for testing good to hear it's working (sort of)

The "Errors" output window in vs will never be 100% perfect but you are right that it was missing definitions causing many errors to display. 

We have refreshed the 1401.12 beta build on codeplex. Please click it and run the installer again with vs closed.

The fix affects intellisense for both arduino and teensy boards when then Teensy Ide is selected. With more time and testing and maybe some help from Paul we should be able to improve it further.

Look forward to an update
  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Intellisense not working with Teensy 3.0
Reply #11 - Jan 20th, 2014 at 11:11pm
Print Post  
Hi

It's alot better now but still some intellisense issues in stdarg.h(IntelliSense: explicit type is missing ('int' assumed)), new.h (IntelliSense: first parameter of allocation function must be of type 'size_t') and when using math functions like sin(x) (IntelliSense: too many arguments in function call)

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working with Teensy 3.0
Reply #12 - Jan 20th, 2014 at 11:27pm
Print Post  
I know it's not important but it would be good to make it better if possible. 

How many errors are showing? I had 11
  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Intellisense not working with Teensy 3.0
Reply #13 - Jan 21st, 2014 at 5:19pm
Print Post  
Agree, it's not that important but it would be nice to not have any errors.
I have 12 errors

//Johan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint