2026-02-07 1:19 AM
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.
2026-02-09 6:43 AM
Hi @OKN
I'm not expert of this, maybe look into :
https://github.com/STMicroelectronics/STM32CubeMP2/tree/main/Middlewares/ST/STM32_USBPD_Library
Regards.
2026-02-09 10:30 PM
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.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.