Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.29k stars 5.28k forks source link

DUET Wifi flash fails #1635

Closed VirtualAI closed 5 years ago

VirtualAI commented 5 years ago

Hello, i just installed klipper on my pi and wanted to flash my DUET Wifi. After running make and creating the confi file, i was running sudo make flash FLASH_DEVICE=/dev/serial/by-id/usb-Duet3D_Duet-if00 which results in

Flashing out/klipper.bin to /dev/serial/by-id/usb-Duet3D_Duet-if00 Entering bootloader on /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0 Device reconnect on /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0 lib/bossac/bin/bossac -U -p /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0 -e -w out/klipper.bin -v

No device found on /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0 Failed to flash to /dev/serial/by-id/usb-Duet3D_Duet-if00: Error running bossac src/atsam/Makefile:65: recipe for target 'flash' failed

also ls /dev/serial/by-id/* leads to /dev/serial/by-id/usb-Duet3D_Duet-if00

i don't know any further. Best regards.

klipper-gitissuebot commented 5 years ago

Hi @VirtualAI,

It did not look like there was a Klipper log file attached to this ticket. The log file has been engineered to answer common questions the Klipper developers have about the software and its environment (software version, hardware type, configuration, event timing, and hundreds of other questions).

Unfortunately, too many people have opened tickets without providing the log. That consumes developer time; time that would be better spent enhancing the software. If this ticket references an event that has occurred while running the software then the Klipper log must be attached to this ticket. Otherwise, this ticket will be automatically closed in a few days.

For information on obtaining the Klipper log file see: https://github.com/KevinOConnor/klipper/blob/master/docs/Contact.md

The log can still be attached to this ticket - just add a comment and attach the log to that comment.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

VirtualAI commented 5 years ago

Installation error provided at top, no running log

mweber99 commented 5 years ago

Hello, it looks you and I are at the same junction trying to setup a Duet 2 Wifi. I was able to get the firmware to load by jumping the Erase pins on the board and pressing the erase button. After doing this and taking the erase jumper off, the firmware loads. However, I am not able to get Klipper on the PI to talk to the controller. The serial ports seems to be messed up after doing this, I do not have an entry for serial, only serial1, no entry for /dev/ttyACM0. I only have Serial1 which points to /dev/ttyAMA0. I've tried both and I get connection errors. I'll enclose my log.

So, proceed with caution, I don't know if doing the reset caused more problems than it fixed.

mweber99 commented 5 years ago

Here is my log for what its worth...

klippy.log

VirtualAI commented 5 years ago

Hello, thanks. I managed to install firmware using a tool named Bossa (Duet Wifi connected to Windows, flashing .bin) Now i resieve new error while parsing the config file. Config file and log file attached (Config file renamed due to upload reasons)

klippy.log

printer.txt

KevinOConnor commented 5 years ago

The log indicates that the micro-controller code is failing during the configuration process. Best guess is that the firmware was not successfully flashed to the micro-controller. It's unclear why you are unable to enter the firmware with the standard make flash command. For the very first time flashing Klipper, it may be necessary to manually enter the bootloader on the Duet by holding the erase button down while pressing the reset button.

-Kevin

KevinOConnor commented 5 years ago

FYI, a similar problem was reported and resolved in issue #1640.

-Kevin