【imx.rt1061】 USB device connection detect

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

【imx.rt1061】 USB device connection detect

ソリューションへジャンプ
1,019件の閲覧回数
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 件の賞賛
返信
1 解決策
1,001件の閲覧回数
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 件の賞賛
返信
1 返信
1,002件の閲覧回数
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 件の賞賛
返信