Printer is not ready (after update)

Hi,
аfter updating the firmware, the klipper does not connect to the MCU (ramps 1.4 + arduino due)
klippy.log (44.5 KB)
The firmware of the device was successful/

Mcu name:
/dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00

Have you restarted the printer?

I restarted the printer, turned it off and on. No result

In the klippy.log there are two different serial:

[mcu]
serial = /dev/serial/by-path/platform-1c1c000.usb-usb-0:1:1.0

and

[mcu]
serial = /dev/serial/by-id/usb-03eb_6124-if00

I tried to connect the arduino due via my native usb and via USB for programming.
I tried to write in the mcu section:

serial : /dev/serial/by-id/usb-03eb_6124-if00

or so:

serial : /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Pro._Port_558393136383510141A0-if00

or so:

serial = /dev/serial/by-path/platform-1c1c000.usb-usb-0:1:1.0

p.s The printer is running an orangepi PC, running Armbian buster with Linux 5.4.35-sunxi

Hello everyone, over the past few days I have done some research on my problem…
What did I do?

  1. installed Arabian 22.05.1 Bullseye with Linux 5.15.43-sunxi.
  2. installed Klipper and Fluid via KAUCH.
  3. Flashed Arduino Due, which is connected to ORANGEPI (flashed both through the native port and through the programming port)
  4. In the [MCU] section, I tried to enter the following:

serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00

or

serial: /dev/serial/by-path/platform-1c1b400.usb-usb-0:1:1.0

or

serial: /dev/ttyAMA0

ls /dev/serial/by-id/*
console output:

/dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00

There is no result

  1. USB UART health check:
    To check the port’s operability,
  • I flashed an example of “Serial Call and Response in ASCII” in the ARDUINO IDE in ARDUINO DUE.
  • installed minicom;
  • sudo minicom -c on -b 9600 -D /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00

console output:

Welcome to minicom 2.8

OPTIONS: I18n
Port /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_55838

Press CTRL-A Z for help on special keys

0,0,0
0,0,0
0,0,0
0,0,0
0,0,0
0,0,0
455,605,255
545,373,255
601,389,255
607,392,255
521,335,255
553,347,255
543,337,255
600,380,255
555,355,255
608,382,255
449,364,255
460,375,255
469,358,255

It can be seen that usb and uart work for receiving and transmitting

  1. Then I try everything from the beginning:
    cd klipper
    make clean
    make menuconfig

Console output

(Top)
Klipper Firmware Configuration
Enable extra low-level configuration options
Micro-controller Architecture (SAM3/SAM4/SAM E70 (Due and Duet)) —>
Processor model (SAM3x8e (Arduino Due)) —>
Communication interface (USB) —>

make
sudo service klipper stop
make flash FLASH_DEVICE=/dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00

Flashing out/klipper.bin to /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00
Entering bootloader on /dev/serial/by-path/platform-1c1b400.usb-usb-0:1:1.0
Device reconnect on /dev/serial/by-path/platform-1c1b400.usb-usb-0:1:1.0
lib/bossac/bin/bossac -U -p /dev/serial/by-path/platform-1c1b400.usb-usb-0:1:1.0 -e -b -w >out/klipper.bin -v

Erase flash

Done in 0.058 seconds
Write 24444 bytes to flash (96 pages)
[==============================] 100% (96/96 pages)
Done in 4.973 seconds
Verify 24444 bytes of flash
[==============================] 100% (96/96 pages)
Verify successful
Done in 4.768 seconds
Set boot flash true

sudo service klipper start

adding to the [MCU] section:

serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_558393136383510141A0-if00

result:

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

What am I doing wrong?
I tried to reboot and wait, there are 2 Arduino due boards, the result is the same on both

P.S. Hardware :
arduino due + ramps 1.4 connected to OrangePi PC plus

If you want to use the Due’s “programming usb port” then you’ll need to compile for serial support in “make menuconfig”. If you want to use the Due’s “main usb port” then you compile for usb support in “make menuconfig”.

-Kevin

1 Like

Thank you very much Kevin.
The problem is solved.
The problem was that the arduino due is connected only in serial mode. I did not succeed in launching the firmware assembled under usb.