2025-06-09 2:13 PM
Hello.
I am trying to create a project that uses both the Nucleo GFX01M2 and SNK1M1 with the G071RB dev board. I want to configure my setup as a USB sink device. However, in STM32CubeMX I can select either the sink USBPD application, or the Touchgfx graphics application, but not both. What would be the best way to develop an application that utilizes both USBPD and TouchGFX?
Thank you.
2025-06-16 3:53 AM
Hello @TS-LMG
I would recommend you to have a look at the STM32H7S78-DK example below.
This demo shows USB DRD and DRP and UCPD: https://www.youtube.com/watch?v=FpX9AdRocYQ
And its available as FS: https://www.st.com/en/microcontrollers-microprocessors/stm32h7r3-7s3.html#
Hope it helps you move forward.
Best regards
Soren Mikkelsen
2025-06-16 2:57 PM
Hello @Soren Myllerup MIKKELSEN,
I will look into using the STM32H7S78-DK for proof of concept purposes. However, the IC itself is quite expensive for my application. I would look to downgrading it in the future. Do you know where I can find the example show in the video?
Thank you.
2025-06-16 3:24 PM
For the STM32H7S78-DK, I noticed that I cannot select both TouchGFX and Sink USBPD application in the software packs selector from within cubeMX. How can I merge TouchGFX and USBPD?
2025-06-17 12:39 AM
@TS-LMG
The demo source is available here: https://www.st.com/en/microcontrollers-microprocessors/stm32h7r3-7s3.html#tools-software Under "Demo resources"
For the TouchGFX and USBPD application combination from scratch, i will ask a colleague to answer on the thread here.
Are you only looking for MCU to drive USB application?
2025-06-17 7:53 AM
Hello @Soren Myllerup MIKKELSEN,
I found the demo source and looked at the source code. By the sounds of it, I will have to manually merge TouchGFX and USBPD together. I noticed the demo has no IOC file.
I am looking for an MCU that can do USBPD and drive a TFT display at the same time, as my application required PD negotiation and some kind of graphical interface.
Regards,
Tom
2025-06-18 1:56 AM
Hello @TS-LMG
One will shortly answer you on the merge of these 2.
The example shows this setup (TouchGFX app + UCPD).
What kind of display do you want to run? the STM32H7R3 comes in LQFP144 wiht UCDP and 1xQuadSPI NOR flash if, You could then connect a parallel or SPI display.
Best regards
Soren Mikkelsen