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.
Is there a way to monitor the plugging and unplugging from host?
Solved! Go to Solution.
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.
------------------------------------------------------------------------------
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.
------------------------------------------------------------------------------