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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Hercules TMS570LC43x LaunchPad: Web Server Example and Lightweight IP
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 15 Jun 2015 11:08 AM Date Created
  • Views 3865 views
  • Likes 5 likes
  • Comments 0 comments
  • tcpip
  • tms570lc43x
  • embedded_webserver
  • httpd
  • lwip
  • texas_instruments
  • http
  • hercules
  • launchpad
Related
Recommended

Hercules TMS570LC43x LaunchPad: Web Server Example and Lightweight IP

Jan Cumps
Jan Cumps
15 Jun 2015

I have the new Texas Instruments Hercules LaunchPad here at home.

It's the  LAUNCHXL2-570LC43LAUNCHXL2-570LC43 with a TMS570LC4357 microcontroller

 

image

It's the first Hercules LaunchPad with Ethernet connector. In this post we'll use that connector, and the Leightweight IP library (lwIP).

TI explains how to make adapt this project (originally written for the Hercules HDKs) to this LaunchPad.

I followed the instructions and got a the example compiled from source and working.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Building the Project

 

I can't do a better job than what TI did on their processor wiki. The setup of the project is excplained on:

HALCoGen Ethernet Driver and lwIP Integration Demonstration

All the steps you should do to have it running on your LaunchPad are her:

LAUNCHXL2 570LC43: lwIP Demo

 

If you meticulously follow all the steps and load the code to your controller, you end up with a  running mini web server.

Connect the LaunchPad to your network (it got an IP address straight away from my DHCP enabled router at home), and log into the serial port with a Serial Terminal (see this post for details).

image

 

Surf to the URL that's logged in the terminal, and you'll get treated with this screen.

image

 

image

 

What Next?

 

Once you have this example running, take your time and dive into the code. It's a very rich example that takes you on a trip trough the lightweight IP stack.

 

I've written a blog on the hackster.io with detailed (really really detailed) instructions to build your own application with IP stack ready.

You can use that as a starting pint for your own projects.

 

If you are adventurous, you can try and change the page that's served by the LaunchPad.

All data that is served by the LaunchPad is contained in HALCoGen EMAC Driver with lwIP Demonstration\v00.03.00\lwip-1.4.1\apps\httpserver_raw\fsdata.*.

 

Have a look at the directory HALCoGen EMAC Driver with lwIP Demonstration\v00.03.00\lwip-1.4.1\apps\httpserver_raw\makefsdata , and look at the readme file.

The folder contains the sources for the web pages, and the readme gives you hints on how to create your own fsdata.c and fsdata.h from that.

 

If you manage to replace the default page with a beautiful new one, post the results and source here.

  • Sign in to reply
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