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

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
SonnyDK
Member
Posts: 13
Joined: Wed Apr 13, 2016 8:30 am

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

Post 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


SonnyDK
Member
Posts: 13
Joined: Wed Apr 13, 2016 8:30 am

Post 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."
"
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post 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.
SonnyDK
Member
Posts: 13
Joined: Wed Apr 13, 2016 8:30 am

Post 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>
SonnyDK
Member
Posts: 13
Joined: Wed Apr 13, 2016 8:30 am

Post 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 464 times
xflash -v.txt
(11.89 KiB) Downloaded 464 times
Best regards

Sonny
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Do you have an active clock during the upgrade?

http://www.xcore.com/viewtopic.php?t=5964
SonnyDK
Member
Posts: 13
Joined: Wed Apr 13, 2016 8:30 am

Post 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.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post 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.
Post Reply