USB host does not reconnect

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

USB host does not reconnect

跳至解决方案
2,370 次查看
sandrobastos
Contributor IV

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

karinavalencia

fernandaprata

bfac

rendy

DavidSeymour

josealmeida

标签 (2)
1 解答
2,045 次查看
rendy
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,045 次查看
rendy
NXP Employee
NXP Employee

Hi, what's your MQX version? Dou you have the 4.1.2 for Vybrid? ---> https://freescale.flexnetoperations.com/control/frse/download?element=6003621

0 项奖励
回复
2,045 次查看
sandrobastos
Contributor IV

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

0 项奖励
回复
2,046 次查看
rendy
NXP Employee
NXP Employee

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

0 项奖励
回复
2,045 次查看
sandrobastos
Contributor IV

ok, I will migrate to 4.2.0 and evaluate again...it's not that urgent so, you don't need to carry on this issue before we migrate...

thank you anyway,

regards,

sandro

2,045 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi Sandro,

Please let us know if the migration solved the problem.

Best Regards,

Alejandro

0 项奖励
回复
2,045 次查看
sandrobastos
Contributor IV

Hi Alejandro,

I'm not working in the migration at this moment, maybe in one or two weeks.

As soon as I finish it, I can post a comment here.

best regards,

sandro

0 项奖励
回复