Hello,
I get the reply is do not recommend use this demo to update firmware, because the dfu demo and dfu-util maybe do not match, and also this only can download firmware to RAM. Original words as below:
"
The issue could be due to the mismatch between the dfu demo and dfu-util tool since a long time has gone with different revisions...
To let it work, below points should be noted:
1. The value of USB idProduct should be changed in the array USB_DeviceDescriptor[] in the file composit_usbdesc.c as below:
change WBVAL(0x0089) to WBVAL(0x000c)
2. The size of command parameter -t should be changed to 512 with high speed USB. see below:
dfu-util.exe -t 512 -D iram_blinky.bin
Note:
1. It appears this command needs to be executed twice to work fine. I don't know why. It might be still caused by something mismatched between demo and tool.
2. The dfu demo only supports to load image to IRAM as mentioned in the readme.txt. This seems be not adaptable to update firmware in application.
"
Regards,
Alice