cancel
Showing results for 
Search instead for 
Did you mean: 

Initialization of USB3DR peripheral devices on STM32MP257F-DK

OKN
Associate III

In the STM32MP257F-DK Linux BSP, I believe that the initialization of the USB3DR peripheral devices (TCPP03-M20, CC1_EN, CC2_EN) is performed by the M33 core executing the following program:

/usr/local/Cube-M33-examples/STM32MP257F-DK/Demonstrations/USBPD_DRP_UCSI/lib/firmware/USBPD_DRP_UCSI_CM33_NonSecure_stripped.elf

Where can I find the source code of this program?

I have created a board using the STM32MP255F with a configuration similar to the STM32MP257F-DK board.
The hardware configuration around USB3 is the same, but some pinctrl and I2C bus channels are different.
Therefore, I would like to modify and use USBPD_DRP_UCSI_CM33_NonSecure_stripped.elf.

2 REPLIES 2
PatrickF
ST Employee

Hi @OKN 

I'm not expert of this, maybe look into :

https://github.com/STMicroelectronics/STM32CubeMP2/tree/main/Projects/STM32MP257F-DK/Demonstrations/USBPD_DRP_UCSI

https://github.com/STMicroelectronics/STM32CubeMP2/tree/main/Middlewares/ST/STM32_USBPD_Library

Regards.

In order 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.
Tip of the day: Try Sidekick STM32 AI agent, see here

Hi

I'll check out the GitHub link you provided.

By the way, why do you perform some initialization in M33?

Would there be any problems if you performed it in A35?

Thanks.