Skip to main content
Associate
October 2, 2024
Question

STM32H573ZI RMII_PTP_Synchro

  • October 2, 2024
  • 3 replies
  • 1322 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?

3 replies

LCE
Principal 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
Associate
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?

 

Associate
April 22, 2026

Hi !
I'm still having this issue with STM32H563RGT6.

In CubeMX, I've enabled TIM2 as slave (External Clock Mode 1), Trigger Source as "ETR1 through Remap", Channel 1 as "Input Capture Direct mode from Remap".
ETR remap capabilities for TIM2 = "TIM2 ETR is connected to ETH_PPS".
Input Capture channel 1 => TI1 remap capabilities for TIM2 = "TIM 2 Channel 1 is connected to ETH_PPS".
(See attached screenshots for details)

However, RMII_PTP_Synchro is still greyed out. 

I've tried with and without Trustzone, but still have the same problem.

Is there anything that I'm doing wrong ? Do you have any update on this ?

Best Regards.