ErikZalm/Marlin — Issue #89: Serial Comms Broken with Teensylu
Author: lincomatic
Created: 2012-02-29 17:18:25+00:00
State: open

Marlin now compiles successfuly for Teensylu (MOTHERBOARD == 8) but serial communication is broken.

Strangely, I traced it to the following line tp_init() in temperature.cpp:

#ifdef HEATER_0_MAXTEMP
maxttemp[0] = temp2analog(HEATER_0_MAXTEMP, 0);
#endif //MAXTEMP

If I return from tp_init() just before executing the above line, I am able to communicate w/ Marlin via the serial terminal.
If I return from tp_init() just after the above line, or just let tp_init() run to the end, then Windows cannot open the serial device associated with Marlin.

Somehow, the way that maxttemp[0] is being used after initialization is interfering with the USB serial emulation of the AT90USB1286.