Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Ethernet on Spartan 3e

Hello everyone,

 

I am working in spartan3e with EDK11.1. I have succesfully sent data from  board to pc via ethernet using emaclite.I noticed the packet in my pc by wireshark.

 

Now i want to receive data from pc to board via ethernet?what function should i use?Can this similar approach be used by connecting the to board via ethernet.

 

any idea,plz share....

regards

Tusu

Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Re: Ethernet on Spartan 3e

Hieee

 

I want to add some specification like that

 

I have used    XEmacLite_SendFrame; to send a fram from board to pc and that succesfully happend.Now there are similar function like    XEmacLite_RecvFrame now will this fuction be used for sending pc to board.From where the recv_frame will expect to receive the frame?

Moderator
ckinnea
Posts: 12
Registered: ‎10-26-2011
0

Re: Ethernet on Spartan 3e

Hey Tusu,

have you looked at XAPP1026.

 

http://www.xilinx.com/support/documentation/application_notes/xapp1026.pdf

 

This steps through echo server, Web server,TFTP server and receive and transmit throughput tests.

 

Colin

Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: Ethernet on Spartan 3e

I think lwip is not available in spartan 3e.

is there any other way for board board to communication by ethernet port in spartan3e(XC350,FG320)?


Research Fellow
University of Calcutta, India
Xilinx Employee
johnmcd
Posts: 436
Registered: ‎02-01-2008
0

Re: Ethernet on Spartan 3e

As long as your design includes a timer, memory, interrupt controller and ethernet controller, lwip should be available.

 

Create a design using base system builder and use plb. Once you have your system, export it to SDK. In sdk, create a new C application and chose LWIP Echo Server from the template options.

Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: Ethernet on Spartan 3e

how i receive data frame into board without using lwip?


Research Fellow
University of Calcutta, India
Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: Ethernet on Spartan 3e

let me descibe how i send dataframe to pc

i have set a data frame of 42 cell 1st

u8 FramePtr[42]={0xff, 0xff, 0xff, 0xff,0xff,0xff,
0x00,0x00, 0x5E,0x00, 0xFA, 0xCf,
0x08, 0x06, 0x00, 0x01,0x08,0x00,
0x06,0x04, 0x00, 0x01, 0x00,0x00,
0x5e,0x00, 0xfa, 0xce,0xac, 0x10,
0x01,0x01, 0x00, 0x00, 0x00,0x00,
0x00,0x00, 0xac, 0x10, 0x01,0x7d};


 set a a arbitary mac address in spartan3e board like

 

static u8 LocalAddress[XEL_MAC_ADDR_SIZE] =
{
0x00,0x00,0x5E,0x00,0xFA,0xCE
};


then use 

 

XEmacLite_SetMacAddress(&EmacLitePtr,LocalAddress)

 

and then send the FramePtr


XEmacLite_SendFrame(XPAR_ETHERNET_MAC_BASEADDR, &FramePtr);

 

I got my desire frame of 42 length on wire shark

 

But 

now i want to communicate 2 board
sender Board  is unchanged with above code

 

but in reciver board i set another arbitary mac address like  

 

static u8 LocalAddress[XEL_MAC_ADDR_SIZE] =
{
0x00,0x00,0x5E,0x00,0xFA,0xCF

};

 

and initialize another array

 

u8 RecevBufr[42]={0x00, 0x00, 0x00, 0x00,0x00,0x00,
0x00,0x00, 0x00,0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,0x00,0x00,
0x00, 0x00, 0x00, 0x00, 0x00,0x00,
0x00, 0x00, 0x00, 0x00,0x00, 0x00,
0x00, 0x00, 0x00, 0x00,0x00, 0x00,
0x00, 0x00, 0x00, 0x00,0x00, 0x00};

  

and use 

 

a=XEmacLite_RecvFrame(XPAR_ETHERNET_MAC_BASEADDR, &RecevBufr); // where 'a' is a 32 bit integer

 

and then print the 

 

for(i=0;i<43;i++)
{
xil_printf("\n %d th Recive.......%x\n\r",i+1,RecevBufr[i]);
}
print("-- Exiting main() --\r\n");

 

but i did not get my  FramePtr[42] in hyperterminal in recievber end


Research Fellow
University of Calcutta, India
Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: Ethernet on Spartan 3e

is there any one????


Research Fellow
University of Calcutta, India
Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Re: Ethernet on Spartan 3e

Yes i have the same problem as of rourabpaul..can any one clarify that whether the two spartan 3e board could be connected via ethernet?When the ethernet port of spartan 3e board will blink?if the port doesnot blink does it mean that my emac core is not successfully downloaded?

 

 

next i would like to ask  form where i will get the reference design of Lwip?

 

plz share///

 

regards

Tusu

 

Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: Ethernet on Spartan 3e

i think we need some delay before send frame and receive frame.

am I right?


Research Fellow
University of Calcutta, India