cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H573ZI RMII_PTP_Synchro

jzx
Associate

 

 

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 3
LCE
Principal

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.

ASEHST
ST Employee

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,

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

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?