cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32CubeMonitor-UCPD log - RDO decoding

Erlkoenig
Associate III

Hi,

STM32CubeMonitor-UCPD sometimes displays RDOs like this:

Erlkoenig_0-1715532579913.png

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!

3 REPLIES 3
FBL
ST Employee

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.

Please find the log attached. The hardware is a NUCLEO-G474RE with X-NUCLEO-SRC1M1, and external 5V supply applied.

FBL
ST Employee

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.