Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfucons failure if run too soon #122

Open
danielpieczko opened this issue Jan 27, 2023 · 2 comments
Open

dfucons failure if run too soon #122

danielpieczko opened this issue Jan 27, 2023 · 2 comments
Labels
testing Issue with test

Comments

@danielpieczko
Copy link
Contributor

Testing manually, I have been replicating the sequence performed by the test_dfu.py testcase: xflash a factory image, get the version number, download an upgrade image, get the new version number, etc.

I have found that if I don't wait before running the command to download an upgrade image, I sometimes get this error:
TUSBAUDIO_StartDfuDownload failed, st=0xEE000047

The command is: dfucons download upgrade1.bin -g{E5A2658B-817D-4A02-A1DE-B628A93DDF5D}

For now, I am just adding a 20s delay into the test as I don't know of a better way to determine if the device is ready for a DFU download, and haven't looked into the dfucons code yet to understand more about this error.

@xross
Copy link
Contributor

xross commented Feb 3, 2023

We intend to escalate this further to our driver provider, Thesycon.

@xross xross added the release notes Item should be listed in the release notes label Feb 3, 2023
@xross
Copy link
Contributor

xross commented Feb 22, 2023

From Thesycon:

The error code 0xEE000047 means TSTATUS_INVALID_INDEX. With status is returned by TUSBAUDIO_StartDfuDownload when the previous call to TUSBAUDIO_EnumerateDevices result in an empty list. That means currently no device is found.
You can retry to call TUSBAUDIO_EnumerateDevices and check with TUSBAUDIO_GetDeviceCount if a device is connected.
After a fresh reconnect it could be that it takes some time until the driver is installed and loaded.
The dfucons does no retry internally with a timeout it just exit if no device is found.

@xross xross removed the release notes Item should be listed in the release notes label Mar 15, 2023
@xross xross added the testing Issue with test label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issue with test
Projects
None yet
Development

No branches or pull requests

2 participants