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

Fail Bulk(R):LIBUSB_ERROR_TIMEOUT(2.009s) #391

Open
mhadavan opened this issue Sep 27, 2023 · 2 comments
Open

Fail Bulk(R):LIBUSB_ERROR_TIMEOUT(2.009s) #391

mhadavan opened this issue Sep 27, 2023 · 2 comments

Comments

@mhadavan
Copy link

mhadavan commented Sep 27, 2023

Based on some other issues reported here #334 ,
I did a simple test to reproduce a LIBUSB_ERROR_TIMEOUT problem that I have on a board:

SDP: boot -f imx-boot-sd.bin-flash_evk
SDPV: delay 1000
SDPV: write -f imx-boot-sd.bin-flash_evk -skipspl
SDPV: jump
FB[-t 15000]: ucmd sleep 3

The problem here is that I always get Fail Bulk(R):LIBUSB_ERROR_TIMEOUT during the sleep operation.

Is this a bug in uuu or is there some parameters I can change to avoid the error message?

@mhadavan
Copy link
Author

After some more investigations and testing, I have found that if I increase the m_Timeout to something big in trans.cpp:: BulkTrans:Read function, I do not get the LIB_ERROR_TIMEOUT message in my test above.

ret = libusb_bulk_transfer( (libusb_device_handle *)m_devhandle, m_ep_in.addr, p, size, &actual_length, 100000 );

Is there any reason for having it at 2000?

@nxpfrankli
Copy link
Contributor

uboot command is sync. Default 2s to run it. BulkTrans:read try to get ucmd's running result. If exceed 2s, it will be timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants