STM32G071RB: USB PD application, REQUEST_DISCARDED debug message from PE.
Hello
I am building an USB PD application.
- MCU: STM32G071RB
- Tool: STM32CubeIDE (Firmware version 1.6.1)
I am using 2 USB PD ports (UCPD1 and UCPD2).
The power role of UCPD1 is DRP, and UCPD2 is Sink.
And I am reading debug messages through STM32CubeMonitor-UCPD.
In my application, 2 UCPDs on the STM32 run at the same time once both ports are connected.
Sometimes, on the Sink port, I see the "REQUEST_DISCARDED" message (Type: NOTIF).
The timing I see the message is after "REQUEST" sent, "GOODCRC" received, "ACCEPT" received, and "GOODCRC" sent.
Message exchanges are normal, but PE reports "REQUEST_DISCARDED" even though message exchanges are successful.
And then, the Sink sends a "SOFT_RESET" message, and sends "HARD_RESET" eventually.
Since it is invisible to me where the "REQUEST_DISCARDED" message comes from (probably it happens in the STM32 static library), I have no idea what is happening inside.
Would it be a timing issue because 2 PEs are running at the same time or a control register have some peculiar values?
I would like to know cases that "REQUEST_DISCARDED" message is issued.
Please let me know if anyone has any idea.
Thanks
