USB timeout KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB timeout KDS

915 Views
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 .

Labels (1)
0 Kudos
Reply
1 Reply

721 Views
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 Kudos
Reply