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 VM_DBG.h:153:2: error: 'HardwareSerial' does not name a type (Read 3556 times)
Richard A
Newbies
*
Offline


Posts: 1
Joined: Jun 18th, 2015
VM_DBG.h:153:2: error: 'HardwareSerial' does not name a type
Jun 18th, 2015 at 6:24pm
Print Post  
Hey all,

I am getting the following error when debugging/running the code for an ArduIMU v3 (Duemilanove ATmega328 compatible).

I have tried all Fast Transport options.

Any thoughts are appreciated.

Richard

Code
Select All
Compiling debug version of 'ArduimuV3_v2' for 'Arduino Duemilanove or Diecimila w/ ATmega328'
VM_DBG.h:153:2: error: 'HardwareSerial' does not name a type
VM_DBG.h:154:13: error: 'HardwareSerial' has not been declared
VM_DBG.h:155:13: error: 'HardwareSerial' has not been declared
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)'
VM_DBG.h:323:2: error: 'transport' was not declared in this scope
ArduimuV3_v2.ino:In function 'void setup()'
ArduimuV3_v2.ino:155:59: error: no matching function for call to 'VisualMicroDebug::begin(FastSerial*, long int)'
ArduimuV3_v2.ino:candidates are
VM_DBG.h:begin(int*)
VM_DBG.h:candidate expects 1 argument, 2 provided
VM_DBG.h:begin(int*, long unsigned int)
VM_DBG.h:no known conversion for argument 1 from 'FastSerial*' to 'int*'
ArduimuV3_v2.ino:155:100: error: 'class VisualMicroDebug' has no member named 'transport'
Error compiling 

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_DBG.h:153:2: error: 'HardwareSerial' does not name a type
Reply #1 - Jun 18th, 2015 at 7:03pm
Print Post  
Hi,

The apm code doesn't have the standard serial, it's been removed and they also removed fastserial from later versions.

You could try the debug using other pins (softwareserial) if you have a few k of memory free and it works with the ardu/apm code.

Otherwise you will need to switch the configuration to release and not use debug. Sorry

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint