2024-12-09 07:41 PM - edited 2024-12-09 10:52 PM
Dear ST Community
I recently purchased two sets of Nucleo-DRP1M1+NucleoG474, and now I want to implement FRS functionality on these two boards. Currently, I have set one of the default power roles to Source, enabled FRS_TX, and the other to Sink. After connecting the two devices together, FRS switching cannot be triggered, and when I was debugging on the Sink side, I found that the FRS interrupt in the code on the Sink side is in a blocked state, and I don't know how to turn it on.
Best regards.
I added the FRS macro definition, but there is a function error inside that I cannot find
2024-12-09 11:46 PM
Hello @AgoDream
I advise you to follow this article : How to manage fast role swap (FRS) in an STM32 - STMicroelectronics Community
This will help you on the management and implementation of FRS.
2024-12-10 12:47 AM - edited 2024-12-10 01:00 AM
Thank you very much for your reply. I have also carefully read the other article you provided.My DRP_Sink character sent an FR_Swap message, but DRP_Source does not support it.
The one above is DRP_Sink
The one above is DRP_Source
2024-12-13 12:56 AM
Hi @AgoDream
Did you check the definition of your PDO in usbpd_pdo_defs.h and in your usbpd_dpm_conf.h
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.
2024-12-13 01:18 AM
Hello, I have checked the definition of PDO and it supports FRS. My code was directly generated using STM32CubeMX
2024-12-13 01:42 AM
Would you share your IOC file?
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.
2024-12-13 02:56 AM