LPC4088 Ethernet Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC4088 Ethernet Error

615 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by juiwen on Thu Oct 31 00:28:56 MST 2013
I use u-boot For LPC1788 and it's run Ok, but I use u-boot for LPC4088 have some trouble. I use u-boot read PHY register from LPC4088 use ENET_MDC & ENET_MDIO pin, I find Hardware Communication is OK but read MII Mgmt Read Data register (MRDD - address 0x2008 4030)  is always zero, can you help me to Solve it, thank you

Regards

juiwen 
Labels (1)
0 Kudos
3 Replies

479 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kangurito on Mon Apr 06 08:10:47 MST 2015
Just to share with those who may fact this problem in the future... here's my solution.

When initialising ethernet MAC, the IO lines must be configured properly before turning on the ETH power.

The initialisation sequence with the code I was using was wrong.

Buggy code with incorrect sequence:

/* Set up power for Ethernet module */
CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCENET, ENABLE);

/* Enable P1 Ethernet Pins. */
PINSEL_ConfigPin(1,0,1);
PINSEL_ConfigPin(1,1,1);
PINSEL_ConfigPin(1,4,1);
PINSEL_ConfigPin(1,8,1);
PINSEL_ConfigPin(1,9,1);
PINSEL_ConfigPin(1,10,1);
PINSEL_ConfigPin(1,14,1);
PINSEL_ConfigPin(1,15,1);
PINSEL_ConfigPin(1,16,1);
PINSEL_ConfigPin(1,17,1);


Solution: Configure the pins first, then turn on the clock. This works:

PINSEL_ConfigPin(1,0,1);
PINSEL_ConfigPin(1,1,1);
PINSEL_ConfigPin(1,4,1);
PINSEL_ConfigPin(1,8,1);
PINSEL_ConfigPin(1,9,1);
PINSEL_ConfigPin(1,10,1);
PINSEL_ConfigPin(1,14,1);
PINSEL_ConfigPin(1,15,1);
PINSEL_ConfigPin(1,16,1);
PINSEL_ConfigPin(1,17,1);

/* Set up power for Ethernet module */
CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCENET, ENABLE);
0 Kudos

479 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kangurito on Sun Apr 05 11:26:06 MST 2015
Hi NXP MCU Support

I'm experiencing the same problem. No data on MRDD.

I can see the return data on the oscilloscope.

Experiments with the CLOCKSEL (slowing down and speeding it up) have made no difference.

CPU LPC4088

CPU running at 120mhz, CLOCKSEL 0x08,

Are there any special registers that need to be configured to make this work?

Thanks in advance
0 Kudos

479 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xianghuiwang on Sat Nov 09 11:16:10 MST 2013
Hi, Juiwen,
Were you able to see the return data from the oscilloscope?
Were you able to confirm all hardware signaling with the LPC4088 comparing with the LPC1788 version?
Thanks much!

0 Kudos