USB timeout KDS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB timeout KDS

1,001 次查看
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 回复

807 次查看
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 项奖励
回复