S32K344 + TJA1101 PHY issue reading address with Gmac_IP MDIO API

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K344 + TJA1101 PHY issue reading address with Gmac_IP MDIO API

3,869件の閲覧回数
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,623件の閲覧回数
safly
Contributor I

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

0 件の賞賛
返信

3,614件の閲覧回数
safly
Contributor I

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

0 件の賞賛
返信

3,860件の閲覧回数
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 件の賞賛
返信