#[SOLVED] Getting error trying to flash AFC via USB

1 messages · Page 1 of 1 (latest)

primal portal
#

I am getting this error when trying to flash it.

#

pi@RatOS:~/klipper $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1d50:614e OpenMoko, Inc. stm32f446xx
Bus 001 Device 008: 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@RatOS:~/klipper $ make flash FLASH_DEVICE=0483:df11
Flashing out/klipper.bin to 0483:df11
sudo dfu-util -d ,0483:df11 -R -a 0 -s 0x8000000:leave -D out/klipper.bin

dfu-util 0.11-dev

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 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: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0483:df11
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash "
Downloading element to address = 0x08000000, size = 31148
Erase [=========================] 100% 31148 bytes
Erase done.
Download [=========================] 100% 31148 bytes
Download done.
File downloaded successfully
Submitting leave request...
dfu-util: Error during download get_status: -9 (LIBUSB_ERROR_PIPE)

Failed to flash to 0483:df11: Error running dfu-util

If the device is already in bootloader mode it can be flashed with the
following command:
make flash FLASH_DEVICE=0483:df11
OR
make flash FLASH_DEVICE=1209:beba

If attempting to flash via 3.3V serial, then use:
make serialflash FLASH_DEVICE=0483:df11

make: *** [src/stm32/Makefile:111: flash] Error 255
pi@RatOS:~/klipper $

earnest sinew
#

This is normal, flash is complete

obtuse current
#

Error 255 is normal and expected.

#

I think theres a 3 year old open issue on dfu-util about it lol

primal portal
#

How to I verify the flash?

earnest sinew
#

Have it all plugged in and power

#

ls /dev/serial/by-id

primal portal
#

pi@RatOS:~/AFC-Klipper-Add-On $ ls /dev/serial/by-id
usb-Klipper_stm32f446xx_btt-octopus-11-if00 usb-Klipper_stm32h723xx_2F002C000551323532363237-if00
pi@RatOS:~/AFC-Klipper-Add-On $

earnest sinew
#

It’s there

primal portal
#

kk

#

right now not installed on printer. Just trying to get it flashed

proven spade
#

any updates here or is this now resolved?

primal portal
#

Resolved