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

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

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

668件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

613件の閲覧回数
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

タグ(1)
0 件の賞賛
返信

587件の閲覧回数
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 件の賞賛
返信

411件の閲覧回数
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 件の賞賛
返信