【imx.rt1061】 USB device connection detect

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

【imx.rt1061】 USB device connection detect

Jump to solution
912 Views
bobhi009
Contributor I

SDK version: SDK_2.6.2_EVKB_IMXRT1061

My application is used as a USB device to transmit audio. There is a function that needs to monitor the USB connection status.

Open the macro definition  (USB_DEVICE_CONFIG_DETACH_ENABLE )in the SDK 

/*! @brief Whether the device detached feature is enabled or not. */
#define USB_DEVICE_CONFIG_DETACH_ENABLE (1U)

But can't detect the USB plug and unplug?

After modifying the ehci driver, it can be detected that the device is plugged in, but the device cannot be unplugged.

bobhi009_0-1630048421297.png

Is there a way to monitor the plugging and unplugging from host?

0 Kudos
1 Solution
894 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi,

I tested detach feature in MIMXRT1064-EVK and SDK version 2.10.0 and in worked correctly. I modified usb_audio_speaker for testing and I followed the procedure below.

What is the best way to detect attaching and detac... - NXP Community

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time. 

------------------------------------------------------------------------------ 

View solution in original post

0 Kudos
1 Reply
895 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi,

I tested detach feature in MIMXRT1064-EVK and SDK version 2.10.0 and in worked correctly. I modified usb_audio_speaker for testing and I followed the procedure below.

What is the best way to detect attaching and detac... - NXP Community

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time. 

------------------------------------------------------------------------------ 

0 Kudos