AnsweredAssumed Answered

USB host does not reconnect

Question asked by Sandro Bastos on Jul 20, 2015
Latest reply on Jul 27, 2015 by Sandro Bastos

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?





Karina Valencia Aguilar

Fernanda Prata

Bruno Castelucci

Rene Kolarik

David Seymour

Jose Geraldo Alves Almeida