iMX51 resets at the startup due to USB hub suspend

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

iMX51 resets at the startup due to USB hub suspend

1,028 Views
SteM
Contributor III

Hi all,

iMX51 + WinEC700.

This morning discovered that if we start our board with an empty USB hub, the board has a reset.

If the board starts without the hub, it starts normally.

The connections are the following:

iMX51 + internal USB hub + external USB hub.

The debug log reports:

...

    CKIH2       =          0 Hz

    FPM         =   33554432 Hz

Windows CE Kernel for ARM (Thumb Enabled)

INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xb

OEMInit:  silicon€’•Ùê‚ÂÉ‚j¤$

‰TkW–,«V¨HøPID:00400002 TID:00510002 OALIoCtlHalInitRTC(2006/1/1 12:0:0.000)

PID:00400002 TID:00510002 WARNING: SRTC was reset.

PID:00400002 TID:009F0006 IpuBufferManagerInit(): Detected reserved video memory(67108864 bytes), will ignore registry setting!

PID:00400002 TID:009F0006 BSPGetPercentOfPowerCapability 85% 3882mV

PID:00400002 TID:009F0006 +BSPBacklightInitialize

PID:00400002 TID:009F0006 +BSPBlSetInt 255

VBridge:: VB_INITIALIZED returns [0]

PID:00400002 TID:02F90002       UsbHost : New Hub [address(1) / layer(0)]

PID:00400002 TID:043C0006 +BSPInitializePanel portID=4 'LVDS 1024x768 Tianma'

PID:00400002 TID:042C0002       UsbHost : New Hub [address(2) / layer(1)]

PID:00400002 TID:042C0002       UsbHost : New Function [address(3) / layer(1)]

PID:00400002 TID:042C0002       UsbHost : New Function [address(4) / layer(1)]

PID:00400002 TID:01D50072 BSPGetPercentOfPowerCapability 80% 3824mV

PID:00400002 TID:01D50072 - in=80 ret=80

PID:00400002 TID:04CE004A +BSPBlSetInt 191

PID:00400002 TID:04CE004A +BSPBlSetInt 191

PID:00400002 TID:04CE004A - in=80 ret=80

PID:00400002 TID:04CE004A - in=80 ret=80

PID:00400002 TID:01D50072 - in=80 ret=80

PID:04E5004A TID:040C0142 [SDI]: Start device init

PID:04E5004A TID:040C0142 [SDI] Register port BSP[1]

PID:04E5004A TID:040C0142 [SDI] Set [unknown] device[host 1]

PID:04E5004A TID:040C0142 [SDI] Set [unknown] device[host 2]

PID:04E5004A TID:040C0142 [SDI] Set [enab] device[wifi]

PID:04E5004A TID:040C0142 [SDI] Set [unknown] device[vci]

PID:04E5004A TID:040C0142 [SDI] Set [enab] device[bluetooth]

PID:04E5004A TID:040C0142 [SDI] Set [unknown] device[dock]

PID:04E5004A TID:040C0142 [SDI]: Stop device init

PID:00400002 TID:04CE004A - in=80 ret=80

PID:00400002 TID:0540002E       USBHost : Hub [address(2) / layer(1)] SUSPEND OK

PID:00400002 TID:04CE004A - in=80 ret=80

PID:00400002 TID:01D50072 - in=80 ret=80

INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xb

BSP Clock Configuration:

    CKIH        =   22579200 Hz

    PLL1        =  800000000 Hz

...

My guess is that nothing is connected to the external hub, after some time it passes in suspend mode: after 3 or 4 seconds also the boards has a reset but without ant particular debug message.

If the external hub is missing and all the devices connected on the internal hub are switched off, also the internal hub switch to suspend mode, but this do not causes any problem.

If i start the board without the (empty) hub and then i connect the hub I have (almost) always the reset:

PID:00400002 TID:0522004A - in=75 ret=70

PID:00400002 TID:042D0002       UsbHost : New Hub [address(4) / layer(1)]

PID:00400002 TID:01D50072 BSPGetPercentOfPowerCapability 80% 3837mV

PID:00400002 TID:01D50072 - in=80 ret=70

PID:00400002 TID:0522004A - in=80 ret=70

PID:00400002 TID:0522004A BSPGetPercentOfPowerCapability 75% 3799mV

PID:00400002 TID:0522004A - in=75 ret=70

PID:00400002 TID:04F5098A       USBHost : Hub [address(4) / layer(1)] SUSPEND OK

PID:00400002 TID:0522004A - in=75 ret=70

PID:00400002 TID:01D50072 - in=75 ret=70

INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xb

BSP Clock Configuration:

    CKIH        =   22579200 Hz

    PLL1        =  800000000 Hz

On the internal hub is also connected a wifi module.

If i switch off the wifi the board does not reset!

Any idea?

What happen?

Labels (2)
Tags (2)
0 Kudos
Reply
4 Replies

855 Views
igorpadykov
NXP Employee
NXP Employee

Hi Stefano,

is external hub is powered before i.MX51 powers up ?

0 Kudos
Reply

855 Views
SteM
Contributor III

Hi,

my hub does not have a power plug.

I'll try with other hub ...

If a mouse or keyboard is connected to the board, there are not problems.

So I guess that the problem is tied with a hub that can enter in suspend mode.

Other tests show that the problem is present only if the WiFi module is powered up, but I have no debug output to help.

0 Kudos
Reply

855 Views
igorpadykov
NXP Employee
NXP Employee

Hi Stefano, actually WiFi module may consume much power,

so it is useful to check if i.MX51 with hub may provide such power

(especially at first moment of power-up).

0 Kudos
Reply

855 Views
SteM
Contributor III

Hi chipexpert,

this is my last try:

power-up the device with WiFi enabled, everything is ok.

After an hour i plug the hub: in the log i see the messages:

PID:00400002 TID:074504D2 - in=95 ret=100

PID:00400002 TID:01D50072 - in=95 ret=100

PID:00400002 TID:04330002       UsbHost : New Hub [address(2) / layer(1)]

PID:00400002 TID:01D50072 - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:074504D2 - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:074504D2 - in=95 ret=100

PID:00400002 TID:01D50072 - in=95 ret=100

PID:00400002 TID:071822B6       USBHost : Hub [address(2) / layer(1)] SUSPEND OK

PID:00400002 TID:01D50072 - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

PID:00400002 TID:0678053A - in=95 ret=100

So the hub is detected. After 10 secs the hub switch in SUSPEND mode and after 2 secs the board reboots.

On the main voltage I don't see any change. Anyway the wall charger is attached, not by battery.

0 Kudos
Reply