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 Debugging Compile Errors (Read 5205 times)
cardinal14
Newbies
*
Offline


Posts: 3
Location: Maryland, USA
Joined: May 23rd, 2014
Debugging Compile Errors
May 23rd, 2014 at 2:22am
Print Post  
Hello,

I have been working with the Arduino IDE for the past two months and finally got fed up with it enough to spend the time to switch IDEs. I'm developing on my own fork of the ArduPlane code on the APM2.

I have tried compiling on a current clone of the ardupilot code from the GitHub repository. The code compiles and will upload without issue. However, if I set the (Micro Debug) property to "Full" and the Remote Transport property to "FastSerial" as specified here: http://diydrones.com/profiles/blogs/how-to-configure-apm-debugging, I get the following error during the debug compilation phase:

Compiling 'ArduPlane' for 'Arduino Mega 2560 HAL (Apm 2)'
Binary sketch size: 243,010 bytes (used 94% of a 258,048 byte maximum) (67.02 secs)
Compiling debug version of 'ArduPlane' for 'Arduino Mega 2560 HAL (Apm 2)'
ArduPlane.pde:In file included from
VM_DBG.h:284:33: error: 'byte' has not been declared
VM_DBG.h:285:33: error: 'byte' has not been declared
VM_DBG.h:286:33: error: 'byte' has not been declared
VM_DBG.h:287:33: error: 'byte' has not been declared
VM_DBG.h:288:33: error: 'byte' has not been declared
VM_DBG.h:289:33: error: 'byte' has not been declared
VM_DBG.h:290:33: error: 'byte' has not been declared
VM_DBG.h:296:33: error: 'byte' has not been declared
VM_DBG.h:297:33: error: 'byte' has not been declared
VM_DBG.h:299:33: error: 'byte' has not been declared
VM_DBG.h:300:33: error: 'byte' has not been declared
VM_DBG.h:305:9: error: 'byte' does not name a type
VM_DBG.h:306:42: error: 'byte' has not been declared
VM_DBG.h:307:33: error: 'byte' has not been declared
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)'
VM_DBG.h:374:36: error: 'byte' was not declared in this scope
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int)'
VM_DBG.h:389:19: error: 'byte' was not declared in this scope
ArduPlane.pde:In function 'void setup()'
ArduPlane.pde:753:34: error: 'Serial' was not declared in this scope
Error compiling

I am wondering if there is something that I did wrong during the installation, or perhaps there is a setting that I have not taken into account to get debug mode working. I'm using Visual Studio 2010 Professional with the Visual Micro plugin. Any help or input to get this debug mode working would be most appreciated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Compile Errors
Reply #1 - May 23rd, 2014 at 11:50am
Print Post  
Hi,

Fastserial was removed from the apm project at some stage along with most of the standard Arduino serial commands.

So you can not use the debugger with an APM project above 2.6 (from memory) because the APM project is no longer arduino compatible

Thanks
  
Back to top
IP Logged
 
cardinal14
Newbies
*
Offline


Posts: 3
Location: Maryland, USA
Joined: May 23rd, 2014
Re: Debugging Compile Errors
Reply #2 - May 23rd, 2014 at 1:22pm
Print Post  
Tim,

Thanks for the response. Even though I'm not thrilled that I won't have a debugger, I can at least stop chasing this problem. Much appreciated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Compile Errors
Reply #3 - May 23rd, 2014 at 2:25pm
Print Post  
Hi,

We could get the debugger working with apm if enough users were making a noise about it. This would include blogs on diydrones and us seeing some good traffic and interest from the apm community.

The impression is that 3dr are moving away from Arduino and therefore it is currently questionable as to whether or not the work is worth the effort.

  
Back to top
IP Logged
 
cardinal14
Newbies
*
Offline


Posts: 3
Location: Maryland, USA
Joined: May 23rd, 2014
Re: Debugging Compile Errors
Reply #4 - May 23rd, 2014 at 6:17pm
Print Post  
I don't think the effort is worth it at least from my perspective. I know that I won't be using the APM long term. It would have definitely been nice to have a serial debugger with this hardware, but I'll get along fine without it. Thanks again.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint