element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development LWIP TCPIP with linux on MicroZED
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 303 subscribers
  • Views 178 views
  • Users 0 members are here
Related

LWIP TCPIP with linux on MicroZED

Former Member
Former Member over 10 years ago

Hi Folks,


I created some simple send/receive TCPIP code in visual c++.  It is bare-bones simple and it works great on all systems on my home network.  The goal is to talk to my MicroZED board but that is not working yet.


I started with the LWIP example available through the Xilinx SDK GUI.  Using WireShark, I can see that it is generating its gratuitous ARP onto my network.  When I try to send to the MicroZED via other systems on the network, MicroZED does not respond with a targeted ARP (as the successful systems do).  That actually makes sense because, in the LWIP example code, ARP response is not enabled for NO_SYS (bare metal) use.  So... I assume the next step is to set up the code to work with Linux so that I can enable the ARP response.  Here is what I think I should be doing.  Comments, direction, suggestions, are all welcome.


1) I think I need to disable NO_SYS and enable XENV_LINUX.  Anything else?


2) What settings should I use under project, properties, build, settings, linker, general. 
    -Do not use standard start files?
    -Do not use default libraries?
    -No startup or default libs?
Are any of these necessary?


3) Then clean and compile the code so that it will work with Linux.  Is that the right thing to do?  Anything else?


4) I need to manually move the executable to the SD card on the MicroZED to test.  Is there a better way move the file without removing and replacing the SD card?  Perhaps using ftpd in busybox (please suggest syntax if you know it)  Also, do I need to put the file in a particular directory or just the root directory or ???


5) I tried copying the bare metal version of the .elf file to the root directory of the SD card.  When I type "./lwip_mrl.elf", the MicroZED responds with "Illegal instruction".  I hope that is either permissions or the fact that I am trying  to run a bare metal program from linux. 


As you can see, I am poking around, trying to get this to work.  If anyone has any guidance or suggestions, please respond.


Thanks!


mrl

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube