Page 1 of 1

DFU does simply not work for me... Tried several times

Posted: Sun Sep 30, 2018 7:05 pm
by SonnyDK
Hi i have tried several time making a dfu enables app.

I have two builds

DFU is enabled in customdefines.h

BCD_device is also configured.

This one programs the code into the XMOS and the device show up and works correctly

xflash --boot-partition-size 0x30000 --factory xxxxxxxxxxxx_2xoxxd.xe

Then i generate a upgrade image:

xflash --factory-version 14.2 --upgrade 1 xxxxxxxxxxxx_2xoxxd.xe -o upgrade_image.bin

But in the DFu app this happens:
Skærmbillede 2018-09-30 19.54.53.png
(20.62 KiB) Not downloaded yet
Skærmbillede 2018-09-30 19.54.53.png
(20.62 KiB) Not downloaded yet

Re: DFU does simply not work for me... Tried several times

Posted: Sun Sep 30, 2018 7:07 pm
by SonnyDK
I really do not know where to search for this problem as i cannot find the error code: "TUSBAUDIO_GetDfuStatus: Function failed with error code 0xEF000004."
"

Re: DFU does simply not work for me... Tried several times

Posted: Sun Sep 30, 2018 9:32 pm
by mon2
Please review this thread and post back with your results:

http://www.xcore.com/viewtopic.php?f=8&t=3031

Q1: What is the output from dfucons info ?

Q2: What is the output from dfucons download upgrade_image.bin ?

And forgot to request to apply the --v which is the verbose flag with the xflash tool for a detailed report of the issue.

Re: DFU does simply not work for me... Tried several times

Posted: Mon Oct 01, 2018 5:23 am
by SonnyDK
C:\Program Files\XMOS\USBAudioStDriver_30C7\W10_x64>dfucons info
Available devices:
Index VID PID REV Serial DFU supported USB mode
00 0x20B1 0x30C7 0x1223 yes APP

Driver Version: 4.13.00 (Lite)



C:\Program Files\XMOS\USBAudioStDriver_30C7\W10_x64> dfucons download upgrade_image.bin
Downloading upgrade_image.bin to target 0 ...
State 6 (Failed), 0 of 23040 bytes downloaded ... ...d ...
Download failed, completionStatus=0xEF000004

C:\Program Files\XMOS\USBAudioStDriver_30C7\W10_x64>

Re: DFU does simply not work for me... Tried several times

Posted: Mon Oct 01, 2018 5:29 am
by SonnyDK
I have also attached the Xflash with the "-v" switch below.

It is a bit difficult to see what to look for, when no in depth description of the stages are available for the DFU. And it has previously worked for us but we can simply not see what the issue is after we upgraded to the 6.12.6_rc3 firmware.
xflash -v.txt
(11.89 KiB) Downloaded 465 times
xflash -v.txt
(11.89 KiB) Downloaded 465 times
Best regards

Sonny

Re: DFU does simply not work for me... Tried several times

Posted: Mon Oct 01, 2018 12:42 pm
by mon2
Do you have an active clock during the upgrade?

http://www.xcore.com/viewtopic.php?t=5964

Re: DFU does simply not work for me... Tried several times

Posted: Mon Oct 01, 2018 12:49 pm
by SonnyDK
There is a crystal connected to the XS1-U8A and one of the clock oscillators feeding the MCLK input is allways active.

But we had it running in a earlier version. But yes if the I2C locks up we cannot start the DFU at all. From earlier experience.

Re: DFU does simply not work for me... Tried several times

Posted: Mon Oct 01, 2018 1:06 pm
by mon2
Please review this thread and the suggestions from infiniteimprobability and ritchrock:

http://www.xcore.com/viewtopic.php?f=26 ... fu+version

Please post your results.