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 APM3.0 Discussion (Read 8751 times)
Thomas3
Junior Member
**
Offline


Posts: 11
Location: Munich
Joined: Feb 1st, 2013
APM3.0 Discussion
May 27th, 2013 at 7:06pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: APM3.0 Discussion
Reply #1 - May 27th, 2013 at 7:16pm
Print Post  
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
Location: Munich
Joined: Feb 1st, 2013
Re: APM3.0 Discussion
Reply #2 - May 27th, 2013 at 9:34pm
Print Post  
I have Board APM 2. 

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


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: APM3.0 Discussion
Reply #3 - May 27th, 2013 at 9:53pm
Print Post  
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
Joined: Oct 29th, 2012
Re: APM3.0 Discussion
Reply #4 - Jun 17th, 2013 at 5:55am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: APM3.0 Discussion
Reply #5 - Jun 17th, 2013 at 1:22pm
Print Post  
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
« Last Edit: Jun 17th, 2013 at 1:22pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint