Hi
I really appreciate any help with this. I don't normally come to forums unless I've banged my head MANY times, and I'm at that point now where I could use some experienced help. I'm brand new to VM, but it looks very promising.
I'm getting the following string of errors when trying to compile a version of a firmware called
Marlin, which drives 3D printers, CNC machines, and some lasers. There is one odd thing about it, and I'm not sure if it's responsible for this or not: It comes as an Arduino project, but functions setup() and loop() are not in the .ino file...they exist in "MarlinMain.cpp". However, I simply renamed them in MarlinMain.cpp, and inserted setup() and loop() functions in the .ino file that call the renamed ones in the .cpp file.
I'm using a motor driver board called an
Azteeg X3 Pro, which is based around an Atmel Mega 2560. I'm using Visual Studio 2015 Enterprise Update 1 with Win 10 (64) Home, and I'm both uploading and attempting to debug through the board's USB port (which on my machine is showing up as COM3). I just downloaded the VM extension last night, and installed it immediately after installing Visual Studio.
Everything compiles fine under Release, but when I switch to Debug, I get an error message.
The settings in Visual Micro that I set manually are:
(Micro Debug) = Full
Remote Port = Serial2 <- (I saw on a tutorial video that the Mega 2560 uses this port. I have tried all available options for this: Serial, Serial1, Serial3, Serial4, Serial5, SerialUSB, even Console)
Remote Transport = SoftwareSerial
Upload Port = COM3
Remote Port = COM3
Here is the error I get when compiling:
Marlin.pde:In function 'void setup()
Marlin.ino:58:57: error: 'Serial2' was not declared in this scope
:void setup() {
debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
Error compiling project sources Maybe I'm jumping the gun...the demo version of the plugin...does come with debug over USB functionality, doesn't it?
Thank you for any help!