Closed srekan closed 4 years ago
Try reflashing your MCU. It appears to be connecting but unable to communicate.
I tried it multiple times. I followed this doc: https://github.com/KevinOConnor/klipper/blob/master/docs/Installation.md
The below step was always failing make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
Then I tried the below command which gave a success result. I found this in the comments section of https://github.com/KevinOConnor/klipper/blob/master/config/printer-creality-ender5-2019.cfg
avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
Still facing the same issue.
Go into your ~/klipper directory and enter the following command:
cat .config > myconfg.txt
Retreive myconfig.txt and upload it here
Often the issue is to not enter the correct device id in the config or the make flash command. So please check if your ID matches. Open a teminal on Linux or PuTTY on Windows and connect via SSH. Enter the user and password and the following:
cd /dev/serial/by-id/ ls
Now you should see your ID which has to be used for the steps you allready did. Add the path and the ID und you are fine.
My output looks like that: pi@octopi:~/klipper $ cd /dev/serial/by-id/ pi@octopi:/dev/serial/by-id $ ls usb-Klipper_stm32f103xe_02081976-if00 pi@octopi:/dev/serial/by-id $
So for me it would be in theory: make flash FLASH_DEVICE=/dev/serial/by-id/usb-Klipper_stm32f103xe_02081976-if0
-Robert
@Arksine, attaching the file. myconfg.txt
Often the issue is to not enter the correct device id in the config or the make flash command. So please check if your ID matches. Open a teminal on Linux or PuTTY on Windows and connect via SSH. Enter the user and password and the following:
cd /dev/serial/by-id/ ls
Now you should see your ID which has to be used for the steps you allready did. Add the path and the ID und you are fine.
My output looks like that: pi@octopi:~/klipper $ cd /dev/serial/by-id/ pi@octopi:/dev/serial/by-id $ ls usb-Klipper_stm32f103xe_02081976-if00 pi@octopi:/dev/serial/by-id $
So for me it would be in theory: make flash FLASH_DEVICE=/dev/serial/by-id/usb-Klipper_stm32f103xe_02081976-if0
-Robert
I made sure I give the right id. The make flash command failed but the below was able to complete the step:
From (https://github.com/KevinOConnor/klipper/blob/master/config/printer-creality-ender5-2019.cfg)
avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
Does your Ender's Melzi board have a bootloader? I am guessing Klipper uses it, but am not certain. That was the first thing I had to do on mine to change firmware when I got it, though I started with the latest Marlin before finding Klipper.
Does your Ender's Melzi board have a bootloader? I am guessing Klipper uses it, but am not certain. That was the first thing I had to do on mine to change firmware when I got it, though I started with the latest Marlin before finding Klipper.
I am newbie to this hardware and firmware. Here is what I did:
Can you please give some instructions to find out whether I have the bootloader on the Melziboard?
If its flashing then you have a bootloader. The menuconfig looks correct.
Make sure that nothing else is trying to connect to the board, such as octoprint. Check octoprint's serial port settings and make sure that /tmp/printer is selected. You don't want it on AUTO trying to connect to the MCU.
If everything is good there, the only thing I can think of is that the bootloader isn't properly loading the program. In that case you may have to flash a new one.
In case you want to try redoing the bootloader on the printer mainboard:
Guide: How to Flash a Bootloader on Melzi Boards
All you need is a standard Arduino board and some jumper wires.
I'm going to close this as it looks like the conversation has concluded. Alas, it does not appear anyone knows the root cause of the failure to flash on this particular board.
-Kevin
klippy.log Attached is the log file