USB timeout KDS

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

USB timeout KDS

1,002件の閲覧回数
rimidhanjal
Contributor I

Hi,

I have created a project for usb hid host For K66 Using K65 example ,but i have used processor expert and configured the  CPU external crystal is of 10 Mhz , PLL output is 120 (Mhz) as shown below image. I have only configured the CPU by PEX148470_148470.PNGimg1.PNG

 

Rest of the code is from K65 example( path: \KSDK_1.3.0\examples\twrk65f180m\demo_apps\usb\host\hid\keyboard) .

Given below is my main function. App_init() is working ok 148471_148471.PNGimg2.PNG

Timeout is always occuringin the function given below( timeout value is 0 which is being passed ), this fuction is called by APP_task.

 

 

148474_148474.PNGCapture6.PNG

if ((((!waitAll) && (*setFlags))) || (*setFlags == flagsToWait)) will never go true. what can be the reason for this .

ラベル(1)
0 件の賞賛
返信
1 返信

808件の閲覧回数
isaacavila
NXP Employee
NXP Employee

Hello Rimi,

USB Host examples are waiting for any device to be connected, usually, these events are managed by signaling OSA's events (OSA_EventWait, OSA_EventSet), so, in this case, if you are getting a timeout error, then, the proper event is not being signalled.

Which event are you waiting for? Where this OSA_EventWait function is called?

Regards,

Isaac Avila

0 件の賞賛
返信