2024-10-01 07:41 PM
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?
2024-10-02 01:43 AM
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.
2024-10-07 03:32 AM
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".
With Regards,
2024-10-08 06:23 PM
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?