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
我也遇到这个问题了,请问这个问题有进展吗
问题解决了,MDIO引脚方向需要设置为Input/Output,其中MDC引脚的波形可以为非周期信号,仅限制了最小高低电平宽度不能小于160ns,最小周期不能小于400ns
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