cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure in NVM STUSB4500 PDOs without reverting to its previous configuration when powered off ?

MPico.2
Associate

I'm using the Software library "STSW-STUSB003" to configure STUSB4500 PDOs,

I use the STEVAL-ISC005V1 with the stm32F072RB. my program works, I manage to modify the PDOs to get the desired voltage.

But when the evaluation kit is disconnected, it reverts to previous configuration. So I can't configure the PDO permanently except using the "STSW-STUSB002" GUI

I only use I2c signals between the stm32 and the eval kit.

I'm using this function from "USB_PD_core.h" to set PDOs

 Update_Valid_PDO_Number( Usb_Port, 3 );

 Update_PDO(Usb_Port, 1, PDO_V1, PDO_I1); 

 Update_PDO(Usb_Port, 2, PDO_V2, PDO_I2); 

 Update_PDO(Usb_Port, 3, PDO_V3,PDO_ I3);

2 REPLIES 2
Benoit FORET
ST Employee

Hello,

STSW-STUSB003 is a software library to be used for dynamic power profile modification, and it is not saving permanently the configuration indeed.

But from st.com, you can also download a utility called STSW-STUSB004, to be used to translate the configuration defined with STSW-STUSB002 GUI into the Non Volatile Memory of the IC. This will make the change effective at every Power On Reset.

Rgds,

Benoit

MPico.2
Associate

Ok Thank you for your reply !