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 Debugging Marlin problem. (Read 4023 times)
aName
Newbies
*
Offline


Posts: 1
Joined: Apr 26th, 2016
Debugging Marlin problem.
Apr 26th, 2016 at 12:40pm
Print Post  
Try build https://github.com/MarlinFirmware/Marlin when full debugger enabled. I use VS 2015 Community.

Code
Select All
-
An example debugger breakpoint has been created.
To switch the demo breakpoint off, deselect Visual Micro>Tutorial Mode.

Compiling debug version of 'Marlin' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Marlin.ino:In file included from
VM_DBG.h:178:2: error: 'HardwareSerial' does not name a type
:HardwareSerial *transport
VM_DBG.h:179:13: error: 'HardwareSerial' has not been declared
:void begin(HardwareSerial *theSerial)
VM_DBG.h:180:13: error: 'HardwareSerial' has not been declared
:void begin(HardwareSerial *theSerial, unsigned long baud)
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)
VM_DBG.h:371:2: error: 'transport' was not declared in this scope
:transport->print("value=")
Error compiling project sources
 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Marlin problem.
Reply #1 - Apr 26th, 2016 at 3:59pm
Print Post  
Hi,

Marlin redefines the Arduino serial ports which, for the 2560, normally uses the HardwareSerial.

I haven't had any info from Marlin users yet that explain the Serial commands that could be used for either of the Serial ports on the 2560. With that info we might be able to hook up debug.

In the meantime you can use the SoftwareSerial option if you have an FTDI>Usb connection?

More about SoftwareSerial here http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Por...

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