Klipper wont connect to board after configuring UART

Basic Information:

Printer Model: Ender 3
MCU / Printerboard: Octopus pro v1.1
Host / SBC Mainsail
klippy.log
klippy (10).log (1.4 MB)

Describe your issue:

after configuring everything to communicate with UART it just keeps showing:

Printer is not ready
The klippy host software is attempting to connect. Please
retry in a few moments.

i checked everything multiple times and cant figure it out

What is your Host computer and what steps did you follow to enable the serial port?

Could you also include how you programmed your Octopus Pro (make menuconfig infomration)?

Hello im using a raspberry pi4 and i used this make menuconfig information:

  • Micro-controller Architecture = STMicroelectronics STM32
  • Processor model = STM32H723
  • Bootloader offset = 128KiB bootloader
  • Clock Reference = 25 MHz crystal
  • Communication interface = Serial (on USART2 PD6/PD5)

and i did all of these:

  • Remove console=serial0,115200 in /boot/cmdline.txt
  • Add dtoverlay=pi3-miniuart-bt at the end of file /boot/config.txt
  • Modify the configuration of [mcu] in printer.cfg to serial: /dev/ttyAMA0 and enable restart_method: command by SSH
  • added enable_uart=1 in /boot/config.txt

Sorry, I should also have asked how you made up your cabling.

Can I ask why you’re not connecting via USB? I just went through the process of setting up a serial connection and USB is a lot easier and a lot less finnicky.

I connected the TX to RX and RX to TX.
I wanted to use UART to free up a USB port on my pi

Could you show how you are wiring things? As always, I’m interested in a single common ground.

You never mentioned what the host you’re using.

If it’s a Raspberry Pi (or clone) you should have two to four USB ports.

Why did you mark this as solved? Are you okay?

If not, how are you connecting ground between the rPi and the Octopus Pro?

I’m connecting the ground from the ground pins next to the TX and RX pins to the Pi ground

Could you please provide a drawing of how things are wired?

When I look at the upper image that you provided:
image

I don’t see any evidence of:

I’m connecting the ground from the ground pins next to the TX and RX pins to the Pi ground

Your goal needs to be to make this as simple as possible for me to figure out what’s going wrong.

I’m not here to judge, but I do need accurate and complete information.

this is the drawing i have created

this is the picture i have used to do the wiring by the way

Okay, that looks right, but sorry, I don’t see it in your picture. Maybe you could retake it from a different angle?

Regardless, how are you powering the Rapsberry Pi and how are you powering the Octopus Pro? Sorry, I should have asked that right from the start.

im powering the raspberry pi with usb-c and im powering the octopus with 24v

Take care that you connect

  • TX of the Pi to RX of the Octopus

and

  • RX of the Pi to TX of the Octopus.
1 Like

Where is the USB-C power for the rPi coming from?

A diagram of how you are powering your system would be really helpful.

How did you program your Octopus Pro? SD Card to DFU?

I just set up an rPi-4B with the latest 64bit rPi OS Lite and I’m trying to get UART0 (which you are using working).

Following your instructions:

  1. Now, when I look at /boot/cmdline.txt, I get the message to say that it has been moved to /boot/firmware/cmdline.txt and I’m editing this file using sudo nano /boot/firmware/cmdline.txt
  2. I removed the console=serial0,115200 at the start of the file and added dtoverlay=pi3-miniuart-bt at the end
  3. No changes to printer.cfg as I’m not there yet.
  4. Same comment about /boot/config.txt - it’s actually in /boot/firmware/config.txt
  5. I added enable_uart=1 at the end of /boot/firmware/config.txt

With this done, I checked /dev/tty*, no ttyAMA0.

Rebooted and checkd for ttyAMA0 and saw:

It’s not there.

So, your process doesn’t work on the latest rPi.

Can you:

  1. Confirm that ttyAMA0 does exist in your system - I use the following command:
ls /dev/tty*
  1. Could you confirm the Raspberry Pi model you’re using and the OS? I’m a bit suspicious that you’re using the latest one because config.txt and cmdline.txt are in the /boot directory - they were moved out of there some time ago.

yes the ttyAMA0 does exist.
I am 100% using the rPi-4B and i just use the mainsail version thats found on the raspberry pi imager

Okay, I’ll give that a try…

Now, you didn’t answer my question regarding how you flashed the Octopus Pro. How did you verify that the flashing operation was correct?