cancel
Showing results for 
Search instead for 
Did you mean: 

FW upgrade via DFU

EPop.2
Associate II

I am trying to upgrade my uC via dfu-util however i receive an error and i do not know how could i debug it dfu-util: Error during download get_status

dfu-util 0.9

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 1024

DfuSe interface name: "Internal Flash  "

Downloading to address = 0x08000000, size = 638548

Download   [=========================] 100%      638548 bytes

Download done.

File downloaded successfully

dfu-util: Error during download get_status

2 REPLIES 2
MM..1
Chief III

On windows you can use STMCubeProgrammer CLI too for DFU.

Simply check flash content with stlink or ?

EPop.2
Associate II

I am trying to upgrade the uC via software so i guess the only option for me is using the DFU, however when i call

system("sudo dfu-util -a 0 -i 0 -s 0x08000000:leave -D "path to file");

i get the error from above

When i am doing it from the STMCubeProgrammer interface all works well (even though i had to downgrade STMCubeProgrammer version, the latest one was crashing)