I have the new Texas Instruments Hercules LaunchPad here at home.
It's the with a TMS570LC4357 microcontroller
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.
I can't do a better job than what TI did on their processor wiki. The setup of the project is excplained on:
All the steps you should do to have it running on your LaunchPad are her:
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).
Surf to the URL that's logged in the terminal, and you'll get treated with this screen.
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.