Skip to main content
Visitor II
October 2, 2024
Question

STM32H573ZI RMII_PTP_Synchro

  • October 2, 2024
  • 2 replies
  • 1318 views

 

 

I had some issues configuring H573 with CubeMX.
When I configure TIM2 or TIM3 according to the instructions of RMII_PTP_Synchro in CubeMX I cannot enable the RMII PTP functionality.
And when looking at RM0481 it seems that the description of the relationship between these two timers and ETH MAC is a bit vague.
What configuration is required to enable RMII_PTP_Synchro on H573?

    This topic has been closed for replies.

    2 replies

    Graduate II
    October 2, 2024

    Spoiler: even enabling "RMII_PTP_Synchro" in CubeMX won't give you PTP.

    Unless there was some big change in HAL_ETH recently, you have to implement PTP on your own. HAL_ETH only gives you some basic register IO functions for PTP.

    ST Employee
    October 7, 2024

    Hello,

    There are two ways to activate RMII_PTP_Synchro for the H5: First, by enabling TIM2 and TIM3 with the trigger source set to 'ETH1 through Remap' and configuring the ETR remap capabilities for TIM2 to "TIM2 ETR is connected to ETH_PTP_PPS_O" and for TIM3 to "TIM3 ETR is connected to ETH_PTP_PPS_O".

    Alternatively, you can enable TIM2 and TIM3 with Channel 1 set to 'Input Capture Direct Mode from Remap' and set the TI1 remap capabilities for TIM2 to "TIM2 Channel 1 is connected to ETH_PTP_PPS_O" and for TIM3 to "TIM3 Channel 1 is connected to ETH_PTP_PPS_O".

     

    Screenshot.png

    With Regards,

    jzxAuthor
    Visitor II
    October 9, 2024

    Hi,

    I enabled Trustzone when I created the project and followed the recommended configuration in the software, but RMII_PTP_Synchro is still not selectable.

    am I missing something or is the feature not optional when Trustzone is enabled?