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

USB host MSC class READ FORMAT CAPACITY command failing. #133

Open
MaheshAvula-Alifsemi opened this issue Jan 11, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@MaheshAvula-Alifsemi
Copy link

Hi, I am working on USB host mass storage class, as part class request there was a command READ FORMAT CAPACITY which is sending from host to device, but device endpoint getting stalled and at the same time host side also STALL ENDPOINT event gets generated and it's trying to reset the endpoint.

below is the code where we can send the READ FORMAT CAPACITY command to the device.

/ Some devices require we do this. /
status = _ux_host_class_storage_media_format_capacity_get(storage);
if (status != UX_SUCCESS)
return(status);

One thing I could say that if we comment above snippet code, MSC class working fine.
Could you please help on this if we can comment this code and continue further MSC class.

->I am using usbx version is v6.1.9_rel.
->ARMCLANG
I am attaching USB trace screenshot for your reference.
MicrosoftTeams-image (33)

Regards
Mahesh

@MaheshAvula-Alifsemi MaheshAvula-Alifsemi added the bug Something isn't working label Jan 11, 2024
@MaheshAvula-Alifsemi
Copy link
Author

Hi @@xiaocq2001 ,
Could you please help on above issue.

@xiaocq2001
Copy link
Contributor

I'm not sure if it's required for some old mass storage device to enumerate, maybe you can try to ignore the error and just continue the steps (dont check the error code to return).

@MaheshAvula-Alifsemi
Copy link
Author

Hi @xiaocq2001,
Thank you so much for update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants