AnsweredAssumed Answered

iMX51 resets at the startup due to USB hub suspend

Question asked by Stefano Mora on May 6, 2014
Latest reply on May 7, 2014 by Stefano Mora

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?

Outcomes