Skip to main content
Visitor II
May 3, 2023
Question

STM32G0 STM32MX generated PD source application generate hardreset every 14s

  • May 3, 2023
  • 1 reply
  • 1499 views

Hi, We have an PD source application on our custom board with STM32G071GBU6N. We use STM32 MX to genereate a PD source application (PD Core 4.1, device 3.4.1) following steps on

STM32StepByStep:Getting_started_with_USB-Power_Delivery_Source

After filling missing bits(Voltage monitoring and vbus switch and other DPM bits). we can make sink and source to enter a explicit power contract. but the PD stack will issue a PD hardreset every 14 seconds without any CAD events.

After few days of debugging, we finally resolve the issue by replacing PD stack library (USBPDCORE_PD3_FULL_CM0PLUS_wc32.a) from STM32 MX (4.1) with x-cube-tcpp_v4.0.0 (4.0) one.

Any sugguestions of starting our software project from STM32 generated one or from x-cube-tcpp_v4.0.0?

Regards

Steven

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 22, 2023

    Hello @SLin.6​ ,

    A few questions:

    Did you update some parts in Middlewares\ST\STM32_USBPD_Library\Devices\STM32G0XX component ?

    Could you make sure that USBPD_HW_IF_GlobalHwInit() function is properly called during application start ?

    Can you provide a dump of RCC->AHBENR register ?

    That will help on debugging your issue.

    Thanks & regards