A test has been done using the same hardware configuration and now using RT-THREAD 4.1.1, but compiling two versions with some configuration changes:
a) First configuration:
**not using RT_USING_STIO
RT_USING TERMIOS**
The USB Host works properly:
msh />start enumeration
pipe transform remain size,: 8
pipe transform remain size,: 0
rt_usb_set_address
pipe transform remain size,: 0
get device descriptor length 18
pipe transform remain size,: 18
pipe transform remain size,: 0
Vendor ID 0x58f
Product ID 0x6387
pipe transform remain size,: 18
pipe transform remain size,: 0
pipe transform remain size,: 32
pipe transform remain size,: 0
pipe transform remain size,: 0
rt_usb_get_interface_descriptor: 0
interface class 0x8, subclass 0x6
rt_usb_get_endpoint_descriptor: 0
rt_usb_get_endpoint_descriptor: 1
rt_usb_get_endpoint_descriptor: 0
rt_usb_get_endpoint_descriptor: 1
pipe transform remain size,: 0
pipe transform remain size,: 1
pipe transform remain size,: 0
pipe transform remain size,: 31
pipe transform remain size,: 36
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 18
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 8
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 512
[I/main] sd card detected : mounted to '/'
pipe transform remain size,: 448
pipe transform remain size,: 384
pipe transform remain size,: 320
pipe transform remain size,: 256
pipe transform remain size,: 192
pipe transform remain size,: 128
pipe transform remain size,: 64
pipe transform remain size,: 13
found part[0], begin: 184320, size: 3.927GB
pipe transform remain size,: 31
pipe transform remain size,: 512
pipe transform remain size,: 448
pipe transform remain size,: 384
pipe transform remain size,: 320
pipe transform remain size,: 256
pipe transform remain size,: 192
pipe transform remain size,: 128
pipe transform remain size,: 64
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 512
pipe transform remain size,: 448
pipe transform remain size,: 384
pipe transform remain size,: 320
pipe transform remain size,: 256
pipe transform remain size,: 192
pipe transform remain size,: 128
pipe transform remain size,: 64
pipe transform remain size,: 13
pipe transform remain size,: 31
pipe transform remain size,: 512
pipe transform remain size,: 448
pipe transform remain size,: 384
pipe transform remain size,: 320
pipe transform remain size,: 256
pipe transform remain size,: 192
pipe transform remain size,: 128
pipe transform remain size,: 64
pipe transform remain size,: 13
msh />ls /usb
Directory /usb:
pipe transform remain size,: 31
pipe transform remain size,: 512
pipe transform remain size,: 448
pipe transform remain size,: 384
pipe transform remain size,: 320
pipe transform remain size,: 256
pipe transform remain size,: 192
pipe transform remain size,: 128
pipe transform remain size,: 64
pipe transform remain size,: 13
...
msh />ls /usb
Directory /usb:
pipe transform remain size,: 31
pipe transform remain size,: 512
pipe transform remain size,: 448
pipe transform remain size,: 384
pipe transform remain size,: 320
pipe transform remain size,: 256
pipe transform remain size,: 192
pipe transform remain size,: 128
pipe transform remain size,: 64
pipe transform remain size,: 13
System Volume Inform<DIR>
RT-THREAD4.odt 36404
msh />
b) using the same program but with
**RT_USING_STDIO
RT_USING_TERMIOS**
the device doesn't enumerate.
Kindly connect with Cathy on LinkedIn, and She will be glad to assist in investigating this matter further. https://www.linkedin.com/in/li-cathy-25658b154/