cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing FRS on G474

AgoDream
Associate

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.

AgoDream_0-1733801876086.png

        Best regards.

AgoDream_0-1733813519613.png

I added the FRS macro definition, but there is a function error inside that I cannot find

2 REPLIES 2
Imen.D
ST Employee

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.

 
 
When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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.

AgoDream_0-1733820399174.png

The one above is DRP_Sink

AgoDream_0-1733821176020.png

The one above is DRP_Source