Hi Tim,
Thanks for the quick reply, I've just tried your suggestions and hit the same problem but with some added errors...
Compiling 'Marlin' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 48030 bytes (of a 258048 byte maximum) (7.671875 secs)
Compiling debug version of 'Marlin' for 'Arduino Mega 2560 or Mega ADK'
Marlin.ino : In file included from
VM_DBG.h : ISO C++ forbids declaration of 'HardwareSerial' with no type
VM_DBG.h : expected ';' before '*' token
VM_DBG.h : 'HardwareSerial' has not been declared
VM_DBG.h : 'HardwareSerial' has not been declared
VM_DBG.h : : In member function 'void VisualMicroDebug::setVariable(T&, int, int)':
VM_DBG.h : 'transport' was not declared in this scope
Marlin.ino : : In function 'void setup()':
Marlin.ino : 'Serial' was not declared in this scope
Marlin.ino : 'class VisualMicroDebug' has no member named 'transport'
Error compiling
I notice that in Marlin.h the author has put in the following lines of code...
#ifndef AT90USB
#define HardwareSerial_h // trick to disable the standard HWserial
#endif
If I patch out the #define temporarily I get a compile but with multiple definitions;
Compiling 'Marlin' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 48030 bytes (of a 258048 byte maximum) (7.6875 secs)
Compiling debug version of 'Marlin' for 'Arduino Mega 2560 or Mega ADK'
core.a(HardwareSerial.cpp.o)* : : In function `__vector_25':
HardwareSerial.cpp : multiple definition of `__vector_25'
MarlinSerial.cpp.o : :C:\Documents and Settings\Me\Local Settings\Application Data\VMicro\Arduino\Builds\Marlin\mega2560/MarlinSerial.cpp:54: first defined here
ld.exe : : Disabling relaxation: it will not work with multiple definitions
core.a(HardwareSerial.cpp.o)* : : In function `serialEvent()':
HardwareSerial.cpp : multiple definition of `rx_buffer'
MarlinSerial.cpp.o :
.bss.rx_buffer+0x0): first defined here
ld.exe : : Warning: size of symbol `rx_buffer' changed from 132 in C:\Documents and Settings\Me\Local Settings\Application Data\VMicro\Arduino\Builds\Marlin\mega2560\MarlinSerial.cpp.o to 68 in C:\Documents and Settings\Me\Local Settings\Application Data\VMicro\Arduino\Builds\Marlin\mega2560\core.a(HardwareSerial.cpp.o)
avr-objcopy* : : 'C:\Documents and Settings\Me\Local Settings\Application Data\VMicro\Arduino\Builds\Marlin\mega2560\Marlin.elf': No such file
avr-objcopy* : : 'C:\Documents and Settings\Me\Local Settings\Application Data\VMicro\Arduino\Builds\Marlin\mega2560\Marlin.elf': No such file
Couldn't determine program size:
So it looks like the Marlin app needs more tweaking to allow it to co-exist with the debugging environment.
Sounds like the first job for 2013 if I can get up in the morning.
)