EmbDev.net

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


von Petalinux + lwIP Stack - no tcp connection (Guest)


Attached files:

Rate this post
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/application_notes/xapp1026. 
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 ...

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.