Detach event

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detach event

2,693 Views
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.

Labels (1)
Tags (1)
0 Kudos
6 Replies

579 Views
JuroV
NXP Employee
NXP Employee

Hello,

 

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

0 Kudos

579 Views
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 Kudos

579 Views
JuroV
NXP Employee
NXP Employee

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

0 Kudos

579 Views
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 Kudos

579 Views
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 Kudos

579 Views
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 Kudos