EmbDev.net

Forum: FPGA, VHDL & Verilog Petalinux + lwIP Stack - no tcp connection


Author: Petalinux + lwIP Stack - no tcp connection (Guest)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Hello,

I have the xapp1078 for petalinux on cpu0 and bare-metal on cpu1 as well 
as xapp1026 for lwip raw ethernet successfully tested and applied.

Https://gist.github.com/imrickysu/8c9bb9a0a0c40f24d718
Https://www.xilinx.com/support/documentation/appli.... 
pdf

At the moment I have a solution with petalinux on the first core, which 
is responsible for USB data transfer, filesystem ... and my app on the 
second core. This app uses lwip for fast RAW Ethernet connection. I've 
tested this bare metal application for a long time and it works pretty 
well. In combination with petalinux on core 0 I have the problem that I 
get no "connected callback" from lwip, thus no connection build up.

I have made a screenshot from the console output:

At the beginning, I start the Softuart app on cpu0, when I start the 
kernel 1, by writing its start address to 0xFFFFFFF0.

In Red is my setup of the Scutimers and the Phy.
Yellow is the connection to port 5001 (for data streams)
Green is a secondary tcp connection to port 6001 (to debug)
In the end I got an Ethernet timeout ...

In Wireshark I recognize that 192.168.202.10 (the board) does something, 
but can not allocate it correctly, do not see on what port he asks. Here 
I have also an excerpt.

Someone ne idea what it could be? Petalinux is still incomprehensible to 
me ...

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.