Ethernet Code For LPC2478 controller using LPC24xx.h file on LPCXpresso IDE

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

Ethernet Code For LPC2478 controller using LPC24xx.h file on LPCXpresso IDE

742 Views
VijayaJangam1
Contributor II

Ethernet Code For LPC2478 controller using LPC24xx.h file on LPCXpresso IDE  work code Used PHY chip for Ethernet communication and use SRAM it gets problem for Ethernet communication in IDE give me solution.  my all files  are attached here please check and give me  corrections and why this sys_calls.c file is used

Labels (1)
0 Kudos
Reply
3 Replies

687 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @VijayaJangam1 

I have checked your main.c.

If you're using external SRAM for buffers (tx_buf), make sure:

External memory is enabled and initialized before using it.

Your code does not include PHY register initialization via MDIO/MDC.

BR

Harry

Tags (1)
0 Kudos
Reply

661 Views
VijayaJangam1
Contributor II

Ethernet Code  using intrnal SRAm base_RAM_ETH_16 = 0x7fe00000 ; /* RAM_ETH_16 */
__base_RAM2 = 0x7fe00000 ; /* RAM2 */
__top_RAM_ETH_16 = 0x7fe00000 + 0x4000 ; /* 16K bytes */
__top_RAM2 = 0x7fe00000 + 0x4000 ; /* 16K bytes */    use this adress transmit string data from transmitter to receiver  I'm working on Ethernet communication between 
two LPC2478 boards using LPCXpresso IDE. I want to send a string from one board to another using broadcast MAC (FF:FF:FF:FF:FF:FF) and store all buffers in internal SRAM (no external RAM or lwIP). send data in the form string from transmitter to receiver Give me corrections and why this problem face. give me solution                  Thank you .....

0 Kudos
Reply

485 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @VijayaJangam1 

I have checked your some code.

I have some advices.

1. I think your PHY may not complete auto-negotiation before EMAC is enabled.

So i think you can 

  while (!phy_link_up()) { dly(1000000); } // Wait for stable link

2. Did you config the ENET_TX_EN, ENET_TXD0, ENET_TXD1, ENET_REF_CLK pin?

BR

Harry

 

0 Kudos
Reply