Skip to content

Serial IO

vintagepc edited this page Jan 20, 2021 · 2 revisions

Serial access is a split process at the moment and requires a modified firmware.

You will need to cherry pick this commit into your firmware branch: https://github.com/vintagepc/Prusa-Firmware-Buddy/commit/3c7eec9df5cc7780713ef355a855e2245c00d397

This will move the serial port from USB to USART1 (which is on the white header and does not conflict with any other uses of the pins).

From there, you can start QEMU with additional command line options as documented for -serial.

If you do not provide any, then by default, the serial terminal is available on VC3. To access it, press CTRL+ALT+3 while the QEMU window has focus. image

You can type in this window to send commands to Marlin: CTRL+[PGUP|PGDN] will let you scroll up and down in the output history.

image

Other useful options:

-serial pty : Connects the serial port to a /dev/pts/# node (Look at the top of the main QEMU terminal output for a message along the lines of char device redirected to /dev/pts/15 (label serial0) to identify it. You can direct pronterface or other serial programs at this PTY.

-serial stdio: Connects serial in/out to the console from which quemu-system-buddy was started. Useful if you don't have a lot of desktop space or don't mind serial output being intermixed with qemu output (e.g. if you only want to send the odd command quickly.)

Clone this wiki locally