phy_autoneg on MPC5748G LCEVB

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

phy_autoneg on MPC5748G LCEVB

ソリューションへジャンプ
887件の閲覧回数
karma_JC
Contributor I

Hi:

Working on PHY driver using example phy_autoneg example.    Base on my assumption, the cable unplug/plug should call one of action(Link up, Link down, autoneg complete, and autoneg failed) callback.  However, those action-callbacks could not be reached when I unplug/plug cable from the ethernet port on MPC5748G LCEVB.  I checked the configuration on ENET(ENET0, MII), and PHY being pointing at the configuration of ENET0.  So, the configuration shall be good.  I traced the the code a  little from mainFunciton->PHY_Read->readC122->ENET_DRV_MDIORead.  The value readback after masking is always 0xFFFF regardless cable being plug in to the port or not.  Will this "phy_autoneg" example work on MPC5748G LCEVB board????

Thanks

James

0 件の賞賛
返信
1 解決策
864件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

example was done for DEVKIT board, however will be running for LCEVB too after some modification. DEVKIT is using RMII connection , LCEVB MII connection.
PA7 and PA10 pins are used to drive LEDs on example and it is connected to PHY outputs on LCEVB, so at least you should unroute pins in pin_mux component.
Then PHY is using address 1 so you need to change it in PHY component

PetrS_0-1651141433042.png

Then it should work on LCEVB.

Ideally change config to MII mode and add rest of MII signals in pinmux and also config pins for LEDs and modify used code to drive right pins for LEDs .

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
851件の閲覧回数
karma_JC
Contributor I

Hi PetrS:

I've resolved this by finding out the default PHY address of TI DP83848C being set to 1.  The problem has been resolved.

Thank you

James

0 件の賞賛
返信
865件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

example was done for DEVKIT board, however will be running for LCEVB too after some modification. DEVKIT is using RMII connection , LCEVB MII connection.
PA7 and PA10 pins are used to drive LEDs on example and it is connected to PHY outputs on LCEVB, so at least you should unroute pins in pin_mux component.
Then PHY is using address 1 so you need to change it in PHY component

PetrS_0-1651141433042.png

Then it should work on LCEVB.

Ideally change config to MII mode and add rest of MII signals in pinmux and also config pins for LEDs and modify used code to drive right pins for LEDs .

BR, Petr

0 件の賞賛
返信