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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Installing plugin (VS2012 Alpha) (Read 37734 times)
Roberto Imai
Junior Member
**
Offline


Posts: 22
Joined: Sep 9th, 2012
Re: Installing plugin
Reply #20 - Sep 12th, 2012 at 4:32pm
Print Post  
Your forum, your rules... I don't mind bunching up all issues in the same thread and clogging it with all different types of issues.
It just makes it hard for people to find solutions in the future when they search your forums.
The threads are going to be clogged with different issues and people will just get lost and not find a solution and just post the same questions over and over again.
I run my own forum board too and I personally prefer to have separate threads for separate issues, but that's me and again, I'll follow your rules.
Please close this thread and I'll start posting on the other one.
BTW, I can't download VS2010 from webspark anymore Sad
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin
Reply #21 - Sep 12th, 2012 at 7:40pm
Print Post  
Normally, I agree but vs 2012 is alpha so any problems will confuse normal usage. In the short term is also allows me to keep track on each user otherwise I forget who is using debug, who is not, who has 2008, 2010, 2012, win xp, win 7 and as of yesterday someone trying win8 Smiley
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin (VS2012 Alpha)
Reply #22 - Sep 13th, 2012 at 12:35pm
Print Post  
I have replicated some problems with intellisense refresh in VS2012 Alpha and will produce a fix during the next few days. Sorry for the messing and thanks for the reports.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin (VS2012 Alpha)
Reply #23 - Sep 15th, 2012 at 8:49pm
Print Post  
VS2012 beta is now on codeplex. It fixes all the problems and also some debugger problems in 2010. 

I hope that I have updated all file version numbers so that you do not need to uninstall the previous version prior to install of 1209.15. 

After installation you can confirm the "Visual Micro version via Tools>Options>Visual Micro>Version"

The version also fixes some re-size issues in the options windows
  
Back to top
IP Logged
 
Roberto Imai
Junior Member
**
Offline


Posts: 22
Joined: Sep 9th, 2012
Re: Installing plugin (VS2012 Alpha)
Reply #24 - Sep 16th, 2012 at 3:24am
Print Post  
Worked!!!
Now I can can go and learn how to debug.
Thanks!!!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin (VS2012 Alpha)
Reply #25 - Sep 16th, 2012 at 3:31am
Print Post  
Excellent. Thanks for all your feedback.
  
Back to top
IP Logged
 
Bryan
Junior Member
**
Offline


Posts: 58
Location: Canada
Joined: Sep 8th, 2012
Re: Installing plugin (VS2012 Alpha)
Reply #26 - Sep 17th, 2012 at 9:39am
Print Post  
Roberto Imai wrote on Sep 16th, 2012 at 3:24am:
Worked!!!
Now I can can go and learn how to debug.
Thanks!!!


Roberto:

Good tutorial here on debugging with the plugin.

http://www.visualmicro.com/tutorials/ArduinoDebugger_Tutorial_Level1.html
  
Back to top
 
IP Logged
 
Roberto Imai
Junior Member
**
Offline


Posts: 22
Joined: Sep 9th, 2012
Re: Installing plugin (VS2012 Alpha)
Reply #27 - Sep 22nd, 2012 at 8:07pm
Print Post  
Ok, I got it to debug and see the variables on a simple test code.
I got an additional problem now.
When I try compiling a more complex code, I get this error message:
Code
Select All
VisualStudioTest.cpp.o : In function `loop'
VisualStudioTest.cpp : SetChannel(unsigned char, unsigned char)'
VisualStudioTest.cpp : SetChannel(unsigned char, unsigned char)'
VisualStudioTest.cpp : SetChannel(unsigned char, unsigned char)'
VisualStudioTest.cpp : SetChannel(unsigned char, unsigned char)'
VisualStudioTest.cpp : SetChannel(unsigned char, unsigned char)'
VisualStudioTest.cpp.o : SetChannel(unsigned char, unsigned char)' follow
avr-objcopy* : No such file
avr-objcopy* : No such file
Couldn't determine program size: C:\Program Files (x86)\Reef Angel Controller\hardware\tools\avr\bin\avr-size: udioTest.hex': No such file
 


This same code compiles fine on Arduino.

Here is the code
Code
Select All
#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <ReefAngel.h>

byte x,y;
char text[10];

void DrawCustomMain()
{
  // the graph is drawn/updated when we exit the main menu &
  // when the parameters are saved
  ReefAngel.LCD.Clear(BtnActiveColor,5,0,127,11);
  ReefAngel.LCD.DrawText(DefaultBGColor,BtnActiveColor,30,3,"My Reef Angel");
  ReefAngel.LCD.DrawDate(6, 122);
  pingSerial();
  ReefAngel.LCD.DrawMonitor(15, 20, ReefAngel.Params,
  ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue());
  pingSerial();
  ReefAngel.LCD.Clear(DefaultFGColor,5,52,127,52);
  ReefAngel.LCD.DrawText(COLOR_DARKGOLDENROD,DefaultBGColor,30,55,"PWM Expansion");
  x=15;
  y=68;
  for (int a=0;a<6;a++)
  {
    if (a>2) x=75;
    if (a==3) y=68;
    ReefAngel.LCD.DrawText(COLOR_DARKGOLDENROD,DefaultBGColor,x,y,"Ch :");
    ReefAngel.LCD.DrawText(COLOR_DARKGOLDENROD,DefaultBGColor,x+12,y,a);
    ConvertNumToString(text, ReefAngel.PWM.GetChannelValue(a), 1);
    strcat(text,"  ");
    ReefAngel.LCD.DrawText(COLOR_DARKGOLDENROD,DefaultBGColor,x+24,y,text);
    y+=10;
  }
  pingSerial();
  byte TempRelay = ReefAngel.Relay.RelayData;
  TempRelay &= ReefAngel.Relay.RelayMaskOff;
  TempRelay |= ReefAngel.Relay.RelayMaskOn;
  ReefAngel.LCD.DrawOutletBox(12, 103, TempRelay);
}

void DrawCustomGraph()
{
}

/*
 
 For more information about custom main screen: http://forum.reefangel.com/viewtopic.php?f=14&t=109

 */

void setup()
{
  ReefAngel.Init();  //Initialize controller
}

void loop()
{
  ReefAngel.PWM.SetChannel(0,PWMSlope(9,0,17,0,15,100,60,15));
  ReefAngel.PWM.SetChannel(1,PWMSlope(9,0,17,0,15,60,60,15));
  ReefAngel.PWM.SetChannel(2,PWMSlope(9,30,16,30,15,100,60,15));
  ReefAngel.PWM.SetChannel(3,PWMSlope(9,30,16,30,15,100,90,15));
  ReefAngel.PWM.SetChannel(4,PWMSlope(9,0,17,0,15,75,30,15));
  ReefAngel.PWM.SetChannel(5,PWMSlope(11,0,14,0,15,30,20,15));
  ReefAngel.ShowInterface();
}
 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin (VS2012 Alpha)
Reply #28 - Sep 22nd, 2012 at 8:15pm
Print Post  
Is debug on or off for the compilation?

What is the text before the error?

Compiling ReefAngel

or 

Compiling debug version of ReefAngel

??

  
Back to top
IP Logged
 
Roberto Imai
Junior Member
**
Offline


Posts: 22
Joined: Sep 9th, 2012
Re: Installing plugin (VS2012 Alpha)
Reply #29 - Sep 23rd, 2012 at 1:33am
Print Post  
Sorry I missed the first line.
Code
Select All
Compiling 'VisualStudioTest' for 'Reef Angel Controller w/ optiboot'
 


Here is what I found out.
If I copy/paste one of my codes, they will fail to compile.
I have to set micro debug to none, save the project and compile to be able to compile without errors. Then, I can change it back to full and start debug and it goes fine from that point on. I can place breakpoints and everything works fine.
I think it is the rescan of something, which happens really quick and I can't read, that does something to allow it to compile. Something to do with intellisense database??  Huh
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin (VS2012 Alpha)
Reply #30 - Sep 23rd, 2012 at 2:49am
Print Post  
Thanks for the information. I will look into that.

What happens if you make a change manually using the keyboard? Does this work properly?

PS: The USER CP>Options are working again. I have switched on your automated emails. Hopefully they work now.
« Last Edit: Sep 23rd, 2012 at 2:50am by Tim@Visual Micro »  
Back to top
IP Logged
 
Roberto Imai
Junior Member
**
Offline


Posts: 22
Joined: Sep 9th, 2012
Re: Installing plugin (VS2012 Alpha)
Reply #31 - Sep 23rd, 2012 at 3:18am
Print Post  
I think it has to do with caching of libraries.
Arduino doesn't cache libraries, but apparently VS is caching them.
Any change to them is only picked up when this intellisense rebuild runs.
And the only way I got to run the rebuild was by setting micro debug to none, saving and running it.

PS. Yes, I'm getting emails now Smiley Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing plugin (VS2012 Alpha)
Reply #32 - Sep 23rd, 2012 at 12:25pm
Print Post  
ok. in tools>options>visual micro>compiler switch off "optimize libraries" until the next release of the plugin

thanks
  
Back to top
IP Logged
 
Roberto Imai
Junior Member
**
Offline


Posts: 22
Joined: Sep 9th, 2012
Re: Installing plugin (VS2012 Alpha)
Reply #33 - Sep 23rd, 2012 at 3:22pm
Print Post  
Yeah, that works Smiley
Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint