Welcome! Log In Create A New Profile

Advanced

Latest Marlin on Printrboard: Problems!

Posted by doctek 
Latest Marlin on Printrboard: Problems!
June 07, 2017 12:24AM
Downloaded latest Marlin (1.1.1). Compiling with Arduino 1.8.2 at Teensy2++. I've set Motherboard to Board_Printrboard (with appropriate caps). Here are examples of the two errors:

In file included from /tmp/arduino_build_805673/sketch/pins.h:115:0,
from /tmp/arduino_build_805673/sketch/MarlinConfig.h:33,
from /tmp/arduino_build_805673/sketch/G26_Mesh_Validation_Tool.cpp:27:
/tmp/arduino_build_805673/sketch/pins_PRINTRBOARD.h:40:0: warning: "USBCON" redefined
#define USBCON 1286 // Disable MarlinSerial etc.
^
In file included from /home/jim/arduino-1.8.2/hardware/tools/avr/avr/include/avr/iousb1286.h:38:0,
from /home/jim/arduino-1.8.2/hardware/tools/avr/avr/include/avr/io.h:192,
from /tmp/arduino_build_805673/sketch/fastio.h:31,
from /tmp/arduino_build_805673/sketch/MarlinConfig.h:26,
from /tmp/arduino_build_805673/sketch/G26_Mesh_Validation_Tool.cpp:27:
/home/jim/arduino-1.8.2/hardware/tools/avr/avr/include/avr/iousbxx6_7.h:963:0: note: this is the location of the previous definition
#define USBCON _SFR_MEM8(0XD8)

^
(There are many repeats of this same error, just in different files.)

In file included from /tmp/arduino_build_805673/sketch/serial.cpp:23:0:
serial.h: In function 'void serialprintPGM(const char*)':
serial.h:35: error: 'customizedSerial' was not declared in this scope
#define MYSERIAL customizedSerial
^
/tmp/arduino_build_805673/sketch/serial.h:96:42: note: in expansion of macro 'MYSERIAL'
while (char ch = pgm_read_byte(str++)) MYSERIAL.write(ch);
^
serial.cpp: In function 'void serial_echopair_P(const char*, const char*)':

(There are several of this flavor also.)


Bottom line: The errors seem to be related to USBCON having two definitions and to customizedSerial not being defined.

My assumption was that a new version of something as major as Marlin would be tested enough to at least compile cleanly for a version like the Printrboard. So I expect that I'm doing something very wrong.
Does anyone have any suggestions?

TIA!
Re: Latest Marlin on Printrboard: Problems!
June 07, 2017 06:13AM
This was fixed 11 days ago...

see [github.com]

Download bugfix-1.1.x branch

Still has warnings, but compiles
Re: Latest Marlin on Printrboard: Problems!
June 07, 2017 05:11PM
FYI - Marlin is getting ready to release a version that does away with the Marlin/FASTIO(STANDARD) vs. Teensy pin numbering headache. It'll only use the Teensy system.
Re: Latest Marlin on Printrboard: Problems!
June 07, 2017 11:41PM
Thanks for the quick, helpful response. AND for that tricky bug fix!

Code compiles now for PrintrBoard (don't know about the F version - didn't try). Lots of warnings about the redefinition of USBCON, but compiles and communicates to the Serial Monitor. Now I can get on with tuning and tweaking.

Thanks again!
Re: Latest Marlin on Printrboard: Problems!
June 08, 2017 11:28AM
Yes, it compiles for RevF, but FAST_PWM doesn't work. There's a PR to fix that already, and a big cleanup of all the AT90USB pin defs (finally !) coming down the pipe, which should make using the extra pins on EXP1 and EXP2 much easier for everyone

-=dave
Re: Latest Marlin on Printrboard: Problems!
June 10, 2017 05:57PM
Late yesterday the AT90USB simplification/unification code was merged. Gone is the Marlin/FASTIO numbering vs. Teensy numbering.

The new code does implement pins 46 & 47 for the two ports that Teensyduino doesn't use.
Sorry, only registered users may post in this forum.

Click here to login