VS Arduino
Visual Micro >> Other Hardware >> APM3.0 Discussion
https://www.visualmicro.com/forums/YaBB.pl?num=1369681581

Message started by Thomas3 on May 27th, 2013 at 7:06pm

Title: APM3.0 Discussion
Post by Thomas3 on May 27th, 2013 at 7: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

Title: Re: APM3.0 Discussion
Post by Visual Micro on May 27th, 2013 at 7: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

Title: Re: APM3.0 Discussion
Post by Thomas3 on May 27th, 2013 at 9:34pm
I have Board APM 2.

With enable debug (properties) set to none it compiles

Title: Re: APM3.0 Discussion
Post by Visual Micro on May 27th, 2013 at 9: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.

Title: Re: APM3.0 Discussion
Post by Clayton on Jun 17th, 2013 at 5: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

Title: Re: APM3.0 Discussion
Post by Visual Micro on Jun 17th, 2013 at 1: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

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.