RA host for MSC class is failing in enumeration
Operating System
Others
Board
Customized RA4M2 board
Firmware
Custom Firmware. RA Host Mass storage No OSAL
What happened ?
The issue occurs during the enumeration of some MSC devices. The USB device report a stall, when I did some troubleshooting, I could notice that the first out token after enumeration is 32 and it is not 31. I found a way to fix it, but I am not fixing it from the root cause.
I attached the Beagle files, before the fix and after the fix.
The fix is coming from @mcuenthusiast. It fixes it for me. but the root cause is coming from somewhere else, I have noticed that the len into write-packet is actually 31 but still, I see 32 bytes are sent with the Beagle.
How to reproduce ?
You just need to plug in some old USB sticks. with any example of RA family
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
I attached the beagle snippets above.
Screenshots
No response
I have checked existing issues, dicussion and documentation
- [X] I confirm I have checked existing issues, dicussion and documentation.
write packet should be 31 for command and 13 for status. If it is not possible with current 16 bit fifo, We probably need to switch to byte access mode at the end of the packet (like the patch). Though I think we probably didn't do it right. Thank for reporting the issue, I will pay attention and testing this when working with rusb2 host.