Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
APM3.0 Discussion (Read 6882 times)
Thomas3
Junior Member
**
Offline



Posts: 11
Munich
APM3.0 Discussion
May 27th, 2013 at 8:06pm
 
Installed AtmelStudio and VisualMicro Plugin on Windows 8. No problems. Installed AtmelSltudio Patch (important for getting properties when working with the debugger).

Installed Arduino 1.0.4. Updated sketchbook folder and Arduino folder in Tools->Project->VisualMicro.

I could not compile AC 2.9. with Atmel Studio and Arduino.

I built AC 3.0 with the APM-Arduino 1.0.4. That works. Biinary with size 228554.
Upload okay, connection with Mission Planer okay.

Started to debug:

I set:
Enable Debug to full
Local Port to COM3
Remote Transport FastSerial


When I want to debug it starts compiling again: Error VM_DBH.h: 'byte' has not been declared'.

Help welcome
Thanks
Thomas
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: APM3.0 Discussion
Reply #1 - May 27th, 2013 at 8:16pm
 
Hello,

Can we first have your visual micro to compile without the debug switched on  (Micro Debug=False).

Can you also confirm which board you select when compiling

Thanks
Back to top
 
WWW  
IP Logged
 
Thomas3
Junior Member
**
Offline



Posts: 11
Munich
Re: APM3.0 Discussion
Reply #2 - May 27th, 2013 at 10:34pm
 
I have Board APM 2.

With enable debug (properties) set to none it compiles
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: APM3.0 Discussion
Reply #3 - May 27th, 2013 at 10:53pm
 
Okay so you can compile everything fine but have a problem when trying to debug.

I have another report of this for apm so will investigate for the next release.
Back to top
 
WWW  
IP Logged
 
Clayton
Junior Member
**
Offline



Posts: 19
Re: APM3.0 Discussion
Reply #4 - Jun 17th, 2013 at 6:55am
 
Yep, I get the same failure when using VM Debug, but compiles OK without Debug.

Uninstalled everything (VM debug)
Downloaded & installed the combo VM + debug
Downloaded & extracted /hardware into sketchbook folder
Changed RemoteTransport to FastSerial
Compiled SUCCESS
Changed (Micro Debug) to Full
Compile FAIL

Here's what I get:
Compiling 'ArduPlane' for 'Arduino Mega 2560 HAL (Apm 2)'
Binary sketch size: 210044 bytes (81% of a 258048 byte maximum) (4.63 secs)
Compiling debug version of 'ArduPlane' for 'Arduino Mega 2560 HAL (Apm 2)'
ArduPlane.pde : In file included from
VM_DBG.h : 'byte' does not name a type
VM_DBG.h : ISO C++ forbids declaration of 'FastSerial' with no type
VM_DBG.h : expected ';' before '*' token
VM_DBG.h : 'FastSerial' has not been declared
VM_DBG.h : 'FastSerial' has not been declared
VM_DBG.h : 'byte' does not name a type
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' does not name a type
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : 'byte' has not been declared
VM_DBG.h : : In member function 'void VisualMicroDebug::setVariable(T&, int, int)':
VM_DBG.h : 'byte' was not declared in this scope
VM_DBG.h : 'transport' was not declared in this scope
VM_DBG.h : : In member function 'void VisualMicroDebug::setVariable(T&, int)':
VM_DBG.h : 'byte' was not declared in this scope
ArduPlane.pde : : In function 'void setup()':
ArduPlane.pde : 'Serial' was not declared in this scope
ArduPlane.pde : 'class VisualMicroDebug' has no member named 'transport'
Error compiling
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: APM3.0 Discussion
Reply #5 - Jun 17th, 2013 at 2:22pm
 
Yes I need to alter the vm debug sources slightly.

The "byte" data type used to be defined in both arduino and apm, but it seems that apm has undefined it.

I think that visual micro should avoid using 'byte' and switch to unint8_t

I hope to do this for the next release over the next few weeks
Back to top
« Last Edit: Jun 17th, 2013 at 2:22pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print