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 Compiler error only in visual micro (Read 6763 times)
Jan Friberg
Junior Member
**
Offline


Posts: 72
Joined: Dec 13th, 2013
Compiler error only in visual micro
Jan 17th, 2016 at 11:19pm
Print Post  
The following code for an arduino Due compiles fine in the standard Arduino IDE 1.6.7

Code (C++)
Select All
void setup()
{
	/* add setup code here */
	while (!Serial) ;
	Serial.begin(9600);
	Serial1.begin(9600);
}

void loop()
{

  /* add main program code here */
  Serial.print("Hello World\n\r");
  delay(10000);

}
 



But in Atmel Studio 6.2 with Visual Micro I get the following compiler error

Compiling 'EvaluateDue' for 'Arduino Due (Programming Port)'
arduino.h:42:18: fatal error: chip.h: No such file or directory
Error compiling

Initially I got this error also in the standard IDE but after configuring boards and following the guide for additional Core to be installed it now works in the standard IDE. Should it not then also work with Visual Micro ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler error only in visual micro
Reply #1 - Jan 18th, 2016 at 12:33am
Print Post  
Hi, 

You are using an ancient version of visual micro with the most recent version of the Arduino Ide
  
Back to top
IP Logged
 
Jan Friberg
Junior Member
**
Offline


Posts: 72
Joined: Dec 13th, 2013
Re: Compiler error only in visual micro
Reply #2 - Jan 18th, 2016 at 2:22pm
Print Post  
Tim@Visual Micro wrote on Jan 18th, 2016 at 12:33am:
Hi, 

You are using an ancient version of visual micro with the most recent version of the Arduino Ide


Regarding updating Visual Micro to the latest version I'm a little confused. Under download I only find an option to download Visual Micro for Visual Studio but nothing for Atmel Studio. And it wasn't possible to run the downloaded installer at all.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler error only in visual micro
Reply #3 - Jan 18th, 2016 at 3:15pm
Print Post  
Hi,

Atmel studio 6.2 is many years old.

The current Atmel version is 7.0.

Visual Micro is always slightly behind for atmel studio so with atmel 7 you can only use up to arduino 1.6.5

Last year microsoft release visual studio 2015 community as a free ide. It's easier to update than atmel studio which is why it's always slightly ahead.

The visual micro entry in the atmel gallery forum says that for atmel studio 7 you need to click the more info link and download from where the link takes you (microsoft gallery)

It's also very difficult to publish new software to the atmel gallery, every click including login takes approx. between 15 and 30 mins so this is why I update it less frequently.

The main download page on www.visualmicro.com gives the information you need to determine which Visual micro release you want to install. 6.2 is discontinued for obvious reasons.

Hope this helps

  
Back to top
IP Logged
 
Jan Friberg
Junior Member
**
Offline


Posts: 72
Joined: Dec 13th, 2013
Re: Compiler error only in visual micro
Reply #4 - Jan 18th, 2016 at 5:57pm
Print Post  
Tim@Visual Micro wrote on Jan 18th, 2016 at 3:15pm:
Hi,

Atmel studio 6.2 is many years old.

The current Atmel version is 7.0.

Visual Micro is always slightly behind for atmel studio so with atmel 7 you can only use up to arduino 1.6.5

Last year microsoft release visual studio 2015 community as a free ide. It's easier to update than atmel studio which is why it's always slightly ahead.

The visual micro entry in the atmel gallery forum says that for atmel studio 7 you need to click the more info link and download from where the link takes you (microsoft gallery)

It's also very difficult to publish new software to the atmel gallery, every click including login takes approx. between 15 and 30 mins so this is why I update it less frequently.

The main download page on www.visualmicro.com gives the information you need to determine which Visual micro release you want to install. 6.2 is discontinued for obvious reasons.

Hope this helps



So unless I don't misunderstand you my issue here can't be solved with Atmel Studio 6.2. Instead I need to upgrade to Atmel Studio 7 and that wont work with the latest Arduino IDE 1.6.7. Do you mean that the best advice is to start using Visual Studio 2015 ? It might be better but of course time for learning it will be needed.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler error only in visual micro
Reply #5 - Jan 18th, 2016 at 6:11pm
Print Post  
Yes, you can either downgrade the arduino ide to a supported version for As6.2 or use Vs2015 with 1.6.7

You can have both configurations installed at the same time. Use the .zip from arduino.cc to unpack older ids versions.

If you install VS2015 make sure you tick c++ via the Custom Install option during install. Otherwise you will have to do it afterwards and the install can take some time.

VS2015 isn't very different to 6.2. Atmel studio is Visual Studio so there is little difference.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint