Hello,
I'm trying to flash klipper onto an Octopus Pro. I went through restoring the boot loader instructions this morning but I'm still having issues flashing Klipper firmware ontoo the Octopus Pro.
Here are the logs from me trying to flash the firmware.
pi@fluiddpi:~/klipper$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 038: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@fluiddpi:~/klipper$ make serialflash FLASH_DEVICE=0483:df11
Flashing out/klipper.bin to 0483:df11 via stm32flash
stm32flash 0.5
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Error probing interface "serial_posix"
Cannot handle device "0483:df11"
Failed to open port: 0483:df11
make: *** [src/stm32/Makefile:86: serialflash] Error 1
pi@fluiddpi:~/klipper$ sudo make serialflash FLASH_DEVICE=0483:df11
Flashing out/klipper.bin to 0483:df11 via stm32flash
stm32flash 0.5
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Error probing interface "serial_posix"
Cannot handle device "0483:df11"
Failed to open port: 0483:df11
make: *** [src/stm32/Makefile:86: serialflash] Error 1
pi@fluiddpi:~/klipper$
Any help would be great. Not sure if I'm dealing with a corrupt board or not.
Thanks,
Brandon
Anonymous
I think you are mixing up stm32flash and dfu-util. 0483:df11 is the USB ID of a plugged-in device in DFU mode, whereas stm32flash works with the serial line bootloader. If the device shows up in DFU mode on USB, the serial bootloader is not activated.
So it sounds like the board isn't going into the correct mode. Would it show up here or not show in DFU mode if it was ready to flash?
pi@fluiddpi:~/klipper$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 062: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@fluiddpi:~/klipper$
pi@fluiddpi:~/klipper$ sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8008000:leave -D out/klipper.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
dfu-util: Could not read name, sscanf returned 0
dfu-util: Failed to parse memory layout
pi@fluiddpi:~/klipper$
When the DFU device appears, it should be ready to flash over USB. Please report at https://sourceforge.net/p/dfu-util/tickets/new/ with the information asked there. In addition you can attach the output from
sudo lsusb -d 0483: -vorangepi@orangepizero2:~/klipper$ make flash FLASH_DEVICE=0483:df11
Flashing out/klipper.bin to 0483:df11
sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8008000:leave -D out/klipper.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08008000, size = 30064
Download [=========================] 100% 30064 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
dfu-util: can't detach
Resetting USB to switch back to runtime mode
There are several issues here: You are using dfu-util 0.9, whereas the latest (and only supported) release is 0.11. The Makefile you are using is adding the -R flag, this is likely a mistake. Where is this Makefile coming from?