Detach event

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Detach event

3,748件の閲覧回数
admin
Specialist II

Hi,

I'm using MQX 3.5.1 with USB Host, at first for testing USB,  I have used the \mfs\examples\mfs_usb demo. In this demo using printf on the UART0 I had never seen the Detach event.

If there is a mass storage I see only Attach Event and Intf Event but when I remove my mass storage from the host the Detach event doesn't appear. This is strange so without the Detach event the filesystem isn't uninstalled.

 

Thanks for the support.

ラベル(1)
タグ(1)
0 件の賞賛
返信
6 返答(返信)

1,634件の閲覧回数
JuroV
NXP Employee
NXP Employee

Hello,

 

mfsusb example works fine here, I will try it out on mcf52259demo asap and let you know.

0 件の賞賛
返信

1,634件の閲覧回数
jcatalan
Contributor I
HI, I've got the same problem as you. Detach event never occurs, at least in 52259DEMO. Which board have you tested in, Jurov? I'm trying to detect detachment manually, by reading the ID pin, but I still can not attach the USB again. How can I restart all the USB module so attachment event can occur again? Thanks
0 件の賞賛
返信

1,634件の閲覧回数
JuroV
NXP Employee
NXP Employee

There was a bug fixed recently regarding attach / detach for KHCI and this could help.

0 件の賞賛
返信

1,634件の閲覧回数
jcatalan
Contributor I

I overwrite the old one and compile the libs but I get 3 errors:

 

 

Error   : undefined identifier 'KHCICFG_THSLD'khci.c line 673       HWTICKS_CONST_THLD = KHCICFG_THSLD * HWTICKS_PER_MSEC / 1000;  Error   : function has no prototypekhci.c line 1021                   *((uint_32*)BD_PTR(0, 1, ep_ptr->tx_bd) + 1) = HOST_TO_LE_LONG((uint_32)buf);  Error   : function has no prototypekhci.c line 1072               bd = LONG_LE_TO_HOST(*pipe_desc_ptr->bd_ptr);  

 

    Thanks for answering so fast!

 

0 件の賞賛
返信

1,634件の閲覧回数
jcatalan
Contributor I

The problem has been solve!

I only had to update MQX to 3.5.1 and it worked at the first time

 

Thank you very much

0 件の賞賛
返信

1,634件の閲覧回数
admin
Specialist II

Inserting mass storage in my usb host I see only attach + intf event and after a removing of my mass storage I don't see event so if I repeat the operation of inserting and removing the mass storage my usb it isn't still detected.

 

I'm using 52259DEMO the external MRAM is necessary for using this demo?

0 件の賞賛
返信