IMXRT117x USB System error

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

IMXRT117x USB System error

80件の閲覧回数
jimmyam
Contributor II

Hi All,

I was having a random USB error (Micro : IMXRT 117x) where the USB pen drive attach would not get detected SOME TIMES. Most of the time it works as expected and enumerates, but when this issue happens even if I unplug the device and then re-plug it back, it would not get detected.

I was debugging the issue and it seems when this issue happens I get USB HOST EHCI error interrupt; But it seems in the ISR 'USB_HostEhciIsrFunction' , (in file usb_host_ehci.c) even if it gets 'USBHS_USBSTS_SEI' it is not handled.

Is it possible to reset the host controller (if there is a system error) and get it back working? If so, how can I do that?

I really appreciate if someone can think of any clues here,

Regards,

Jim

0 件の賞賛
1 返信

20件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @jimmyam,

How often does this issue happen? Does it happen with another USB pen drives as well?

You can try de-initializing and re-initializing the USB module by using:

USB_HostDeinit();
USB_HostDeinit();

Or, you could also reset the whole system with:

NVIC_SystemReset();

BR,
Edwin.

0 件の賞賛