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 Problems "marrying" Arduino extension with Atmel Studio (Read 9291 times)
Esa N
Newbies
*
Offline


Posts: 4
Joined: Mar 9th, 2014
Problems "marrying" Arduino extension with Atmel Studio
Mar 9th, 2014 at 10:59am
Print Post  
http://www.visualmicro.com/forums/yabbfiles/Templates/Forum/default/undecided.gi...

As you may find that I am newbie using Atmel studio and its Arduino extension.
Arduino and its IDE is familiar.

I seem to need some help installing Arduino under Atmel Studio.

Am I missing something important because I cannot get Arduino extension into Atmel Studio?

I start Extension manager and select Arduino. Extension manager starts Firefox (??) and which starts downloading it.

After download I start the .msi file and it is installed succesfully. The lastime I installed it under Atmel Studio extension folder. BUT what then?

As a reference I loaded SAM D20 extesion. Extension manager starts an extra window for downloading.
After download the second window is opened for installation.
After succesfull installation a new button is set to restart Atmel studio.
After restart the new extension is in installed list.

I tried some tricks but they seemed only to confuse Atmel studio because Extension manager tells that I own already one on the Available Downloads BUT not on the installed side neither there is nothing Arduino related under any tool.

I also tried to use MicroManager but I do not see any command Tools>Visual Micro>Reset User Interface.

I would like to use it because I am tired to original IDE especially when trying to find errors and dubugging bigger projects.

Please advise?
http://www.visualmicro.com/forums/yabbfiles/Templates/Forum/default/smiley.gif
Regards Esa N
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #1 - Mar 9th, 2014 at 6:30pm
Print Post  
Hi,

Thanks for the post and for trying to find solutions yourself.

Visual Micro is currently an add-in which uses a Microsoft .msi installer. Extensions are slightly different and it is confusing that all are accessed via the Extension Manager

I have never heard of firefox trying to load when running an msi so I suggest downloading the msi to your computer then right click and run as administrator. (I suggest running as admin simply to ensure you do not hit any further issues but it is not normally important)

Please confirm the version of Atmel Studio you have installed? If you are using Atmel 6.2 Beta then you should be using this beta version of Visual Micro. Otherwise, for 6.1 using the download button in the gallery is fine.

If this message does not resolve the issue then please confirm which Atmel Version you are using and I will give you a solution.

Thanks
  
Back to top
IP Logged
 
Esa N
Newbies
*
Offline


Posts: 4
Joined: Mar 9th, 2014
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #2 - Mar 10th, 2014 at 5:24am
Print Post  
Thank you Tim for rapid answer

I am using AS 6.2.993 Beta. Using its Extension Manager is confusing bacause it seems to point to the older version of Visual studio for Arduino.
Which is very confusing if you are not aware. I was not.
Maybe I explaned badly what happened. EM started FF for download. After download I started .msi file to get VS installed.
Today morning I did as you instructed. Downloaded the Beta version of VS.
Started AS6.2 and, BINGO, VS started asking information.

Thank you very much 
Esa N
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #3 - Mar 10th, 2014 at 9:27am
Print Post  
Great. We will produce a new official release shortly. 

You downloaded the beta (6.2) of Atmel Studio instead of the current official release (6.1) of Atmel Studio which is why we have a big note "news" at the top of the Visual Micro download description about using the alternate beta download.

Even though we have the note and the title of the product download says "Arduino Ide for Atmel Studio 6.1 (6.2 see beta)" you are not the only person to make the mistake.  Smiley

You can see that "Luis Areias" has made the same mistake and given us a 1 star review in the Gallery  Cry

Best of luck with your projects, thanks for the update.
« Last Edit: Mar 10th, 2014 at 9:28am by Tim@Visual Micro »  
Back to top
IP Logged
 
Esa N
Newbies
*
Offline


Posts: 4
Joined: Mar 9th, 2014
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #4 - Mar 10th, 2014 at 11:15am
Print Post  
OK. That is fine.

There is still something strange in my setup because I get error messages using one library. Arduino IDE compiles same file gladly without errors. (IBM Laptop WIN XP). My main Arduino tool.

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x20,16,2);  // set the LCD address to 0x20 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd 
 
  // Print a message to the LCD.
  lcd.backlight();
  lcd.print("Hello, world!");
}

void loop()
{
}

BUT the same sketch using VS gives error messages:
Compiling 'HelloWorld' for 'Arduino Uno'
HelloWorld.ino:8: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int)'
LiquidCrystal_I2C.h:LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)
LiquidCrystal_I2C.h:LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t, uint8_t)
LiquidCrystal_I2C.h:LiquidCrystal_I2C(uint8_t)
LiquidCrystal_I2C.h:LiquidCrystal_I2C(const LiquidCrystal_I2C&)
LiquidCrystal_I2C.h:In function 'void setup()'
LiquidCrystal_I2C.h:175: error: 'int LiquidCrystal_I2C::init()' is private
HelloWorld.ino:12: error: within this context
Error compiling

Why?

But it is strange because I loaded the same setup into my second computer (Table PC running also WIN XP). Building the same file in that, is succesfull without errors.

I do not remember from where I downloaded the libray but it is:
LiquidCrystal_I2C V2.0

I tested an other example code which uses "normal" LCD Library and it was OK.

I tested also some  other own projects and I am pleased how VS works.
I would like to see line numbers on the side bar. I use jEdit a lot.

I prefer to use Laptop because I have some projects which need it.

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #5 - Mar 10th, 2014 at 12:11pm
Print Post  
Hi,

Thanks for the update.

Quote:
I would like to see line numbers on the side bar. I use jEdit a lot


All features such as code completion options and line numbers are managed by the standard Atmel Studio Ide features. I found this article on avrfreaks that looks like it explains how to switch on line numbers http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=133808&start=0

Quote:
#include <LiquidCrystal_I2C.h>


There ahev been a lot of library structure changes in the Arduino Ide recently. Each Arduino ide supports one type of structure where as  Visual Micro supports them all in a single Ide. I suspect that Visual Micro is finding the LiquidCrystal_I2C.h include in another library which in future versions Visual Micro will ignore if the include can be found as a main library name. It is a weakness of the arduino design (but for good reason) that this confusion can happen and they only just recently updated the Arduino Ide with the patch I have described. We will do the same

It will help if you do the following so that I can understand clearly the issue.

Code
Select All
1. Switch on Tools>Options>Visual Micro>Compiler>Verbose
2. Switch on Tools>Options>Visual Micro>Compiler>Show build properties
3. Click Build>Clean Solution
4. Click build or attempt to start.
 


After point 4) you will see a full build output in the output window. Please copy all the output and email to info [at] visualmicro.com.

Thanks very much
« Last Edit: Mar 10th, 2014 at 12:13pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Esa N
Newbies
*
Offline


Posts: 4
Joined: Mar 9th, 2014
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #6 - Mar 10th, 2014 at 2:41pm
Print Post  
Thank you for your reply and the hint of adding line numbers.

You are right with "doubled" files. In laptop I have NewLCDLibrary which contains also I2C part. But because my table PC is just set up from "fresh" I have only the original LCDLibrary. 
So meanwhile I have to put the original LCD library back to laptop and have to go through my projects to find out where I used that new one. Not a big deal.
The main thing is that I get everything working properly so far.

best regards
Esa N


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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems "marrying" Arduino extension with Atmel Studio
Reply #7 - Mar 10th, 2014 at 2:44pm
Print Post  
Excellent, thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint