KSZ9893R phy on LPC1768

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

KSZ9893R phy on LPC1768

1,365 次查看
darren_cawthorn
Contributor I

Hi,

I have an LPC1768 setup with the demo DP83848J phy running successfully inside an RTOS so I have a decent code base to work from. 

I have since re-spun a board with the KSZ893R as the phy, now I didn't expect this to just run with the same code but it appears to be completely buggered! During the setup of the EMAC on the LPC itself the unit hangs to the point it locks out the debugger.

I have traced the fault to a single line :

LPC_EMAC->MAC1 = MAC1_PASS_ALL;

the define is just setting a 0x02 into the register. 

If i run this code on the dev board ( using original phy ) it runs fine but at this point surely im not even talking to the phy?

I noticed the phy im using isnt listed in the known compatible list but does that mean I am limited only to this list? my knowledge of ethernet is limited somewhat. I just assumed so long as they have the correct RMII / MII pins they are good to go. 

Thanks,

Darren.

标签 (2)
0 项奖励
回复
1 回复

1,228 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Darren,

Before you set up a specific register of Ethernet, you should follow up the procedure and initialize the module.

Hope it can help you

BR

XiangJun Rong

pastedImage_1.png

0 项奖励
回复