cancel
Showing results for 
Search instead for 
Did you mean: 

USB stack sporadically fails to start – Watchdog reset – possible hardware issue?

Martin42
Associate III

Hello everyone,

I’m facing an issue with an STM32L4-based design where the USB FS Device stack (CDC) sporadically fails to start correctly. Maybe someone has seen similar behavior or can point me to potential root causes.

 

System overview / setup

  • MCU: STM32L4 (CubeMX / HAL / FreeRTOS)

  • Clocking:

    • MSI as system clock (16 MHz)

    • USB via PLLSAI1 (48 MHz)

  • USB: FS Device Stack (CDC), initialized after HAL_Init() / SystemClock_Config() in the first Task

    • Martin42_6-1758225189274.png
  • ESD protection: USBLC6-2SC6

  • Lines: no series resistors on D+ / D-

  • Firmware Package Name and Version: STM32Cube FW_L4 V1.15.0
  • Hardware layout:
    • Martin42_2-1758224870658.png

       

  • Clock configuration:
    • Martin42_3-1758224904590.png

       

  • USB Stack configuration:
    • Martin42_5-1758225045729.png

       

 

Observed behavior

  • On several boards, the USB stack does not reliably start after power-up.

  • In that case, the firmware blocks → Watchdog reset after ~8 s → endless reset loop.

  • Disconnecting/reconnecting the supply sometimes fixes the issue, and the USB connection to the PC works normally.

  • Interesting: When probing D+ or D- with an oscilloscope, the USB stack suddenly starts working – presumably because the probe affects the signal lines.

  • On another board with the same firmware, the issue never occurs.

 

Questions / assumptions

  1. Series resistors on D+ / D-

  2. ESD protection (USBLC6-2SC6)

    • Could this component disturb the USB lines under certain conditions?

  3. Layout / signal integrity

    • Are there known issues if USB differential pairs are not perfectly routed (impedance, symmetry)?

  4. USB stack initialization

    • What exactly does the stack expect at startup?

    • Are certain voltage levels on D+ / D- required to be stable?

Looking for:

  • Experiences whether missing series resistors are really critical.

  • Layout recommendations for USB FS with STM32

  • Known pitfalls with ESD protection and USB initialization

 

Thanks a lot for any hints or ideas!

Best regards,
Martin

0 REPLIES 0