SDK USB host test does not detect mouse

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

SDK USB host test does not detect mouse

30,359 Views
shefft
Contributor IV

2

I am trying to use my iMX6 board as a host for a mouse.  The test says that mouse movements should be displayed on the console.

USB Driver

Host test

Connect usb mouse to the OTG or Host connector (according the prompt)

Run test.

Move the mouse, the x-y position  should be printed on the terminal. (The test has failed if nothing is printed.)

Click the left mouse button to exit.

I'm using the host connector.  The result is the same whether the mouse is connected or not.  Wondering if this has something to do with the onboard 'hub controller', and if that is the HID descriptor being sent.

Here is the console output, with debug enabled:

Select test to run:

us

0. OTG controller

1. Host1 controller

2. Exit USB test

Select > 1

0. usb_host_test

1. usb_host_testmode_test

2. usb_device_mouse_test

3. Exit to upper menu

Select > 0

Running usb_host_test on Host1 controller

Waiting USB mouse connected...

Connect detected.

Connected at high-speed

PORTSC = 0x18001205

Device connected at HIGH speed

Device descriptor has been read!!

USBSTS = 0x0004a081

device_descriptor[00] = 0x2000112

device_descriptor[01] = 0x5b448000

device_descriptor[02] = 0x00

device_descriptor[03] = 0xc141fef6

device_descriptor[04] = 0xfed70083

device_descriptor[05] = 0x1004fb7f

device_descriptor[06] = 0xe3ff2104

device_descriptor[07] = 0x86ff3

device_descriptor[08] = 0xd60d00

device_descriptor[09] = 0x00

device_descriptor[0a] = 0xf3ad0120

device_descriptor[0b] = 0xd0fffb

device_descriptor[0c] = 0xd7ffc601

device_descriptor[0d] = 0x4580af7a

device_descriptor[0e] = 0x76ff0146

device_descriptor[0f] = 0x8c000000

device_descriptor[10] = 0x00

device_descriptor[11] = 0xc99fcdb

Set address command complete!!

USBSTS = 0x00048081

Device descriptor has been read!!

USBSTS = 0x00048081

device_descriptor[00] = 0x2000112

device_descriptor[01] = 0x5b448000

device_descriptor[02] = 0x00

device_descriptor[03] = 0xc141fef6

device_descriptor[04] = 0xfed70083

device_descriptor[05] = 0x1004fb7f

device_descriptor[06] = 0xe3ff2104

device_descriptor[07] = 0x86ff3

device_descriptor[08] = 0xd60d00

device_descriptor[09] = 0x00

device_descriptor[0a] = 0xf3ad0120

device_descriptor[0b] = 0xd0fffb

device_descriptor[0c] = 0xd7ffc601

device_descriptor[0d] = 0x4580af7a

device_descriptor[0e] = 0x76ff0146

device_descriptor[0f] = 0x8c000000

device_descriptor[10] = 0x00

device_descriptor[11] = 0xc99fcdb

Configuration descriptor has been read!!

USBSTS = 0x00048081

config_descriptor[00] = 0x09

config_descriptor[01] = 0x02

config_descriptor[02] = 0x29

config_descriptor[03] = 0x00

config_descriptor[04] = 0x01

config_descriptor[05] = 0x01

config_descriptor[06] = 0x00

config_descriptor[07] = 0xe0

config_descriptor[08] = 0x01

Interface, hid, and endpoint descriptors have been read!!

USBSTS = 0x00048081

interface_descriptor[00] = 0x09

interface_descriptor[01] = 0x04

interface_descriptor[02] = 0x00

interface_descriptor[03] = 0x00

interface_descriptor[04] = 0x01

interface_descriptor[05] = 0x09

interface_descriptor[06] = 0x00

interface_descriptor[07] = 0x01

interface_descriptor[08] = 0x00

hid_descriptor[00] = 0x07

hid_descriptor[01] = 0x05

hid_descriptor[02] = 0x81

hid_descriptor[03] = 0x03

hid_descriptor[04] = 0x01

hid_descriptor[05] = 0x00

hid_descriptor[06] = 0x0c

hid_descriptor[07] = 0x09

hid_descriptor[08] = 0x04

ep_descriptor[00] = 0x00

ep_descriptor[01] = 0x01

ep_descriptor[02] = 0x01

ep_descriptor[03] = 0x09

ep_descriptor[04] = 0x00

ep_descriptor[05] = 0x02

ep_descriptor[06] = 0x00

Device enumerated.

Device is not a mouse. No further processing is performed

0 Kudos
3 Replies

30,162 Views
jamesbone
NXP TechSupport
NXP TechSupport

Can you please share a little more details on how it is your scenario of the connection?  Are you using the Freescale SDB Board?   Doing a quick view it seems that the unit test it is detecting the USB-Hub but it is not enumerating the Mouse, is the HUB self powered? or it is powered externally?.   IF this is a custom board,  I would recommend that you share your schematics.

0 Kudos

30,162 Views
shefft
Contributor IV

2

2

I am using a Boundary Devices Nitrogen6x board.  It has a USB2513B-AEZG "Hub Controller" on board through which two USB ports route.  I'm assuming that is what i'm getting the descriptors from.  What I'd like to find is a schematic for the SABRE board to compare, since the SDK seems to have some hooks for that board.  I haven't been able to find any documentation or comments with the SDK that talk about the HW configuration for this particular test so that I can make the necessary changes to the SDK.

Ok, my previous statement was wrong there is no GPIO enable, that was for the HC out to a power switch for the ports.  So I can't detect any issues with the HW yet, but i'll keep looking at this HC chip.  Uboot detects the mouse just fine, so this shouldn't be too complicated.

0 Kudos

30,162 Views
jamesbone
NXP TechSupport
NXP TechSupport

You can find the schematics of the SABRE Board in the following link:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREPLAT&fpsp=1&tab=Design_Too...

I don´t have a Nitrogen Board to test, but  it is a good idea to review if they are using the same PINS for the USB port.

0 Kudos