734397_en-US

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

734397_en-US

734397_en-US

LPC1768 to interface with ksz8863 and lwip

Hi

When LPC1768 , as a reference design , it works with lwip tcp example fine.

a udp example can send and receive data from windows app.

We connected a 3 port switch , ksz8863  from microchip , to LPC1768 and the udp is not working.

The status is:

1. There is a link to the switch, it can be read via the same code that reads the phy registers ( mdio and mdc are func1)

2. we can access using bit bang , smi and mii to the chip ( change mdio and mdc to gpio - func0)

3. we tried to use mac mode in the switch rather then phy more , both not working.

Does any one connected to any micro controller a Ethernet switch and worked with lwip?

does it require any changes in the code?

Do we need to configure the switch to work in phy more or mac mode ( just to be sure)

The question can be directly for LPC1768 + ksz8863 + lwip + udp 

but also for any micro controller ->  port switch -> lwip + udp.

Any information is welcome,

Thank you.

LPC17xxLPCOpenRe: LPC1768 to interface with ksz8863 and lwip

If possible please share interfacing diagram of ksz8863 and lpc1768

Re: LPC1768 to interface with ksz8863 and lwip

Hi,

I am also planning to interface KSZ8863 with LPC4088. As you have used LPC1768 from the same series of NXP, will you please share your code which will be helpful for me in implementing the driver for LPC4088?

Waiting for your kind reply.


Thanks

Deepak

Re: LPC1768 to interface with ksz8863 and lwip

We found the problem

in  emac_config.h 

there is PHY ADDRESS

/* The PHY address connected the to MII/RMII */
#define LPC_PHYDEF_PHYADDR 3

the phy address should be 3 

because the switch has 3 ports , where there the MII is connected to port 3 now 

it was connected to port 1 in the reference design

This is the only change that should be done, 

标记 (1)
无评分
版本历史
最后更新:
‎11-21-2025 06:26 PM
更新人: