cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use STUSB1602 with STM32MP1?

HAPPYDAY
Associate II

Can I use STUSB1602 with STM32MP1?

The STM32MP157C-DK2 has an STUSB1600, but it is not a PD controller, so I am reviewing the STUSB1602.

STUSB1602 seems to support only STM32F0, STM32F4, STM32G, and STM32L.

I'm curious to see if it is possible to port and use the STUSB1602 related driver to STM32MP1. Is there any related document?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

In theory the USB-PD stack could run on any CPU, as long as the software stack is ported on it.

In practice the STUSB1602 stack has only been ported on few versions of STM32.

The main issue with STM32MP1 is that there is no Linux driver available for STUSB1602 to run on the Cortex-A7 core.

An easier way to have STUSB1602 working with STM32MP1 could be to run the USB-PD stack on the Cortex-M4 core (included in STM32MP1) by porting the STUSB1602 software library from STM32F446.

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

View solution in original post

3 REPLIES 3
Gregory Go.
Senior II

Hello,

Indeed the STUSB1602 software stack is currently available only on some versions of STM32.

The STM32MP1 contains a Cortex-A7 and a Cortex-M4.

On which core do you want to run the USB-PD stack ?

Note that the STUSB1600 uses the I2C interface. While STUSB1602 requires I2C + SPI interface.

So you cannot just replace the STUSB1600 part with STUSB1602 on STM32MP157C-DK2 board, because you need to add the SPI wiring.

Hello, Thank you for answer.

The USB-PD Stack runs on the Cortex-A7.

If STUSB1602 is available in STM32MP1, We will build a test board and review it.

As you said, I know that the STUSB1602 software stack is only available on some STM32s, is that possible on the STM32MP1?

Hi,

In theory the USB-PD stack could run on any CPU, as long as the software stack is ported on it.

In practice the STUSB1602 stack has only been ported on few versions of STM32.

The main issue with STM32MP1 is that there is no Linux driver available for STUSB1602 to run on the Cortex-A7 core.

An easier way to have STUSB1602 working with STM32MP1 could be to run the USB-PD stack on the Cortex-M4 core (included in STM32MP1) by porting the STUSB1602 software library from STM32F446.

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