AnsweredAssumed Answered

Why the TMODE of the Timer Control Status Register ENET_TCSR2 can not be set?

Question asked by Lee Xiao on Dec 6, 2018

Hi, All

 

We have got an MIMXRT1050-EVK. We are testing the ptpd demo ( an1219sw) on it. It seems the ptpd can work. In order to check the time difference between the Master and Slave, we'd like display the PPS signal of the Slave and Master on an oscilloscope. Since the PPS signal is generated directly from the 1588 timer channel 3 and is routed to the J22-7 pin of the MIMXRT1050-EVK. We have set the SW_MUX_CTL_PAD_GPIO_AD_B1_02 register to 0x00000004 and the SW_PAD_CTL_PAD_GPIO_AD_B1_02 register to 0x000180B0 to select ENET_1588_EVENT2_OUT. However, when I connect the J22-7 pin of the MIMXRT1050-EVK to the oscilloscope, the PPS signal could not be displayed on the oscilloscope.  We debugged the program and found that the TMODE of the ENET_TCSR2 register could not be set correctly. It is always zero no matter what kind of data was set to it. It means that the Timer Channel is always disabled. It seems that other fields such as TPWC can be set correctly. I used the software from an1219sw. Part of the code is attached to this message. We are very grateful if some one can help us to solve this problem.

 

Best regards.

 

 

Lee Xiao

Attachments

Outcomes