cancel
Showing results for 
Search instead for 
Did you mean: 

STUSB4500, how we can set profile through I2C using nrf52832 MCU.

HJada
Associate

Hello,

I am using STUSB4500 Type C IC , I want to set the profile for 5V 3A.

I referred the code given in Github:

https://github.com/usb-c/STUSB4500

Same we have implemented in nrf52832 SDK, but its not getting programmed.

Any solution for this? How we can program through nrf52832?

Thanks,

Heena.

1 REPLY 1
Gregory Go.
Senior II

Hello,

The STUSB4500 is programmable through I2C Slave interface.

As long as the SoC you use has an I2C Master interface, you will be able to program the STUSB4500.

The code to program the STUSB4500 NVM is available here: STSW-STUSB004

https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-stusb004.html

It is also available here:

https://github.com/usb-c/STUSB4500/tree/master/NVM_Flasher

I saw that nRF52832 System-on-Chip has a 2-wire interface, which is compatible with I2C interface.

6.27 TWI — I2C compatible two-wire interface

The TWI master is compatible with I2C operating at 100 kHz and 400 kHz.

So you should be able to port easily the code to the nRF52832.

Best regards.