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

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
SonnyDK
Member
Posts: 11
Joined: Wed Apr 13, 2016 8:30 am

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

Postby SonnyDK » Sun Sep 30, 2018 7:05 pm

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: 11
Joined: Wed Apr 13, 2016 8:30 am

Postby SonnyDK » Sun Sep 30, 2018 7:07 pm

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: 1299
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Sun Sep 30, 2018 9:32 pm

Please review this thread and post back with your results:

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: 11
Joined: Wed Apr 13, 2016 8:30 am

Postby SonnyDK » Mon Oct 01, 2018 5:23 am

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: 11
Joined: Wed Apr 13, 2016 8:30 am

Postby SonnyDK » Mon Oct 01, 2018 5:29 am

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 85 times
xflash -v.txt
(11.89 KiB) Downloaded 85 times


Best regards

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

Postby mon2 » Mon Oct 01, 2018 12:42 pm

Do you have an active clock during the upgrade?

viewtopic.php?t=5964
SonnyDK
Member
Posts: 11
Joined: Wed Apr 13, 2016 8:30 am

Postby SonnyDK » Mon Oct 01, 2018 12:49 pm

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: 1299
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Mon Oct 01, 2018 1:06 pm

Please review this thread and the suggestions from infiniteimprobability and ritchrock:

viewtopic.php?f=26&t=6746&hilit=dfu+version

Please post your results.

Who is online

Users browsing this forum: No registered users and 51 guests