2024-05-12 09:57 AM
Hi,
STM32CubeMonitor-UCPD sometimes displays RDOs like this:
Where does the number MaximumOperatingCurrent come form? Since the RDO is defined as:
typedef struct
{
uint32_t MaxOperatingCurrent10mAunits : /*!< Corresponding to min if GiveBackFlag = 1 */ 10u;
uint32_t OperatingCurrentIn10mAunits : 10u;
...
} USBPD_SNKFixedVariableRDO_TypeDef;
MaximumOperatingCurrent should correspond to the lowest 10 bits of the data. These are 0x05 0x14 as displayed in "DATA:" in the monitor. This would mean that MaximumOperatingCurrent is 5, not 517(0).
I also verified in USBPD_TRACE_Add that the data sent in Ptr is indeed actually 0x82 0x12 0x05 0x14 0x00 0x17.
Am I right that MaximumOperatingCurrent=5 in this case?
Thanks!
2024-05-13 10:22 AM
Hi @Erlkoenig
Could you please attach full log and specify your hardware setup?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-13 10:49 AM
2024-05-14 02:13 AM
Hi @Erlkoenig
Internal ticket has been submitted 181302 to dedicated team for further investigation.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.