S32K344 + TJA1101 PHY issue reading address with Gmac_IP MDIO API

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K344 + TJA1101 PHY issue reading address with Gmac_IP MDIO API

3,843 次查看
MateoSegura413
Contributor III

Hello,

I have a setup where I'm trying to read a register value from the TJA1101 Ethernet PHY using the Gmac_Ip_MDIORead function. I have a logic analyzer hooked up to the MDIO and MDC lines, and I'm able to see that the PHY responds to address 0x00 with the data at that register, but from the software I cannot see the value that is read back. 

I have attached the project I'm working with. The code is nicely abstracted and placed in a HAL, so please use the eclipse tool to naviagte to the initialization function. The code is clean and easy to look at (in my opinion). I have attached a picture of the logic analyzer reading as well. The find address function is at the bottom of the file attached

Any guidance as to why I'm unable to read the data from software would be useful

Thanks in advance

0 项奖励
回复
3 回复数

3,597 次查看
safly
Contributor I

我也遇到这个问题了,请问这个问题有进展吗

0 项奖励
回复

3,588 次查看
safly
Contributor I

问题解决了,MDIO引脚方向需要设置为Input/Output,其中MDC引脚的波形可以为非周期信号,仅限制了最小高低电平宽度不能小于160ns,最小周期不能小于400ns

0 项奖励
回复

3,834 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @MateoSegura413,

Probably the problem is from the clock provided to the Ethernet module. Could you share the Mcu and Port configuration? And which RTD package are you using?

Best Regards,

Nam

0 项奖励
回复