IMXRT117x USB System error

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

IMXRT117x USB System error

375件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

283件の閲覧回数
Sam_Gao
NXP Employee
NXP Employee

Hi @jimmyam 

It's hard to say the root cause or give you some good direction currently, I am not sure if random USB issue is from h/w or s/w, but to my knowlege, you may check:

  • If the tasks override interrupt when issue happend
  • Host Power configure or unstable voltage

 

And would you please give me more details/backgroud about this project(it is an USB pen base on RT117x? PC Plugin?), how to reproduce it?  Which sdk example/version are you using?

B.R./Sam

 

0 件の賞賛
返信

268件の閲覧回数
jimmyam
Contributor II

Hi Sam,

Thank you for your response, probably I will continue talking to you through mail. 

 

Regards,

Jimmy

0 件の賞賛
返信

315件の閲覧回数
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 件の賞賛
返信

269件の閲覧回数
jimmyam
Contributor II

Thank you Edwin. I tried this, however did not improve the situation.

0 件の賞賛
返信