Hello everybody,
I'm using MQX 4.1.1 with TWR-VF65GS10 (Vybrid), under IAR Systems platform; I'm trying to make the example MFS_USB ("...\Freescale_MQX_4_1\mfs\examples\mfs_usb") to work, in order to read flash drives.
As I already use the USB0 as a device, I changed "twrvf65gs10_a5.h" to use USB1 as host:
#define USBCFG_DEFAULT_HOST_CONTROLLER | (&_bsp_usb_host_ehci1_if) |
The problem is that, if I run the example without the flash drive and then attach the drive, it's mostly not recognized. If I start the example with the pen drive attached, ok, it's recognized and works fine, but, if I disconnect it and reconnect it again, it's not found again (most of times).
In other words, the "USB_ATTACH_EVENT", in many times, doesn't happen, in 'USB_task()', in module 'usb_task.c'.
Any idea?
Regards,
Sandro
bfac
已解决! 转到解答。
The USB stack prior 4.1.2 is completely different. The newer stack (present in 4.1.2, 4.2.0) solves many issues of the older one, so I think it's worth the effort of migrating. If you think it's urgent I will consult the issue with my colleague from R&D on Monday. But let's make sure we won't do any work which will be discarded after your migration to 4.2.0
Regards
Rene
Hi Rene,
I'm using MQX 4.1.1; I tried to migrate to 4.1.2 but I had many problems: Migrating from MQX4.1.1 to 4.1.2_Vybrid - USB issues
A colleague mine is working to migrate to version 4.2.
thank you,
sandro
The USB stack prior 4.1.2 is completely different. The newer stack (present in 4.1.2, 4.2.0) solves many issues of the older one, so I think it's worth the effort of migrating. If you think it's urgent I will consult the issue with my colleague from R&D on Monday. But let's make sure we won't do any work which will be discarded after your migration to 4.2.0
Regards
Rene