Avrdude timeouts while attempting to flash

Hi,

i have OctoPi installed on a 3B+ and target machine is the Anycubic mega zero 1. OctoPi communicates fine with the printer.

i’m following the install instructions here :

https://www.klipper3d.org/Installation.html

This is what happens when i try to flash :

pi@octopi:~/klipper $ make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
Flashing out/klipper.elf.hex to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 via avrdude
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

make: *** [src/avr/Makefile:34: flash] Error 1

Any advice greatly appreciated, thanks, Gary.

Tried flashing from Octoprint, the error this time was the same, a timeout with the programmer but the interface on the printer did restart, showing the welcome screen on the LCD.

  • Make sure that Octoprint (or any other software) does not try to connect to the printer
  • What kind of board?
  • What is the output of ls /dev/serial/by-id/*

Thanks. I just flashed it with Marlin, tested fine. Klipper then flashed succesfully but now i have a brick so i’ll unbrick it then go through it again.

Octoprint in disconnected state.
Tech specs of Mega Zero say 2560 but Marlin only flashed when i chose the 1284p so i used that for the Klipper flash also.
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

It wasn’t bricked so i’ve reflashed with this Marlin version which came pre-configured for the Zero :

I’ll start a new topic since this is no longer about timeouts.