I'm trying to compile the code with the second serial port activated on the "RuRamps4D V1.3", and tells me that it is not supported....... ?
Enable the second serial port in the Configuration.h:
This is the error:
"SERIAL_PORT_2 is not supported for your MOTHERBOARD. Disable it to continue."
With Marlin V1.1.8 I don't have this error and the second serial port works flawlessly.
Hi!
I also encountered this problem and added some code to /src/HAL/HAL_DUE/HAL.h based on code in HAL.h from HAL_LPC1768.
With these fixes, everything works:
HAL.zip
from string 43
//
// Defines
//
#if !WITHIN(SERIAL_PORT, -1, 3)
#error "SERIAL_PORT must be from -1 to 3"
#endif
#if SERIAL_PORT == -1
//extern USBSerial SerialUSB;
#define MYSERIAL0 Serial1
#elif SERIAL_PORT == 0
#define MYSERIAL0 Serial
#elif SERIAL_PORT == 1
#define MYSERIAL0 Serial1
#elif SERIAL_PORT == 2
#define MYSERIAL0 Serial2
#elif SERIAL_PORT == 3
#define MYSERIAL0 Serial3
#endif
#define NUM_SERIAL 2
#if SERIAL_PORT_2 == -1
//extern USBSerial SerialUSB;
#define MYSERIAL1 Serial1
#elif SERIAL_PORT_2 == 0
#define MYSERIAL1 Serial
#elif SERIAL_PORT_2 == 1
#define MYSERIAL1 Serial1
#elif SERIAL_PORT_2 == 2
#define MYSERIAL1 Serial2
#elif SERIAL_PORT_2 == 3
#define MYSERIAL1 Serial3
#endif/*
#else
#define NUM_SERIAL 1
#endif */
//#define MYSERIAL0 customizedSerial
Work fine, cool thanks!
Working on a general solution. See #11947.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Working on a general solution. See #11947.