cancel
Showing results for 
Search instead for 
Did you mean: 

PTP ethernet configuration with TIM2 problems in cube mx 6.12.1

jfresneda
Associate

Hello,

I have been trying to configure the ethernet RMII with PTP synchro on cube MX. The idea is to link the PPS signal to trigger the timer. I can't manage to get the remap to be done to the ETH_PTP_PPS as is not displayed in the dropdown. According to the same cube mx that option should appear. 

On a side note when I enable the RMII_PTP_syncro I also loose all the config information of ethernet which i find rather strange. 

Do any of you have any suggestions on what's the proper way of configuring this? Is this even possible or is just a bug of the prompt that implies is possible?

 

Thanks in advance ;)

PTP configuration STm32.png

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @jfresneda 

I'm  currently checking this behavior. I will get back to you ASAP.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Ghofrane GSOURI
ST Employee

Hello @jfresneda 

After checking the RM0399 :41.4.22 TIM2 alternate function option register 1 (TIM2_AF1)

GhofraneGSOURI_0-1770971211346.png

 

ETR source selection of TIM2 can be sourced from:
1- A normal GPIO pin
2- COMP1 output,
3- COMP2 output,
4- LSE ,
5- SAI1 frame sync A/B.
==>ETH_PPS_OUT is not listed as a selectable ETR source for TIM2, which is why STM32CubeMX does not offer a direct “ETH_PPS_OUT → TIM2_ETR” option.

However, Ticket 227158 has been raised to the development team to add the missing “TIM2_ETR is connected to GPIO” choice in the TIM2 ETR remap list.

 

GhofraneGSOURI_1-1770971491174.png

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.