This page is under construction and may not have complete or up-to-date information.
Description
Connecting to hosts, serial controllers, and CAN bus
Use these options to define the machine hardware, including the mainboard, serial ports, etc. These are the most basic settings for every type of machine that Marlin supports.
Select the serial port for host communication.
This setting allows you to choose which serial port on your board will be used for communication with the host computer. Serial port -1 is typically the USB emulated serial port, if available. Note that the first serial port (-1 or 0) will always be used by the Arduino bootloader.
👁️ Examples
#define SERIAL_PORT 0 // Set the first serial port to UART0
#define SERIAL_PORT -1 // Set the first serial port to Native USB
Default communication speed for all serial ports.
This setting defines the baud rate for serial communication. A baud rate of 250000 works in most cases, but you might try a lower speed if you commonly experience drop-outs during host printing. You may try up to 1000000 to speed up SD file transfer.
👁️ Example
Enable G-code M575
to set the baud rate.
This setting allows you to use G-code M575 P<port> B<baud rate>
to dynamically change the baud rate during operation.
Select a secondary serial port for host communication.
This setting allows you to choose an additional serial port on your board for communication with the host computer. Currently, Ethernet (-2) is only supported on Teensy 4.1 boards.
👁️ Example
Select a third serial port for host communication.
This setting allows you to choose an additional serial port on your board for communication with the host computer. Currently supported for AVR, DUE, SAMD51, LPC1768/9, STM32/STM32F1/HC32, and Teensy 4.x boards.
👁️ Example
Select a serial port to communicate with RS485 protocol.
This setting allows you to choose which serial port on your board will be used for communication with the RS485 protocol.
👁️ Example
Check your host for protocol compatibility.
This setting allows you to specify the protocol used with RS485 communication. Leave this set to 1
to use the default protocol. Check your host for protocol compatibility.