The latest version of the web server demo includes support for DHCP by simply pushing and holding SW1 at power-up.
The DHCP client has been tested with Netgear, Linksys, Belkin, and Netgeo routers.
If you have any questions please contact me at: eric.gregori@freescale.com
Hi Richard
I can't comment as to the suitability of the Lite code for DHCP but did once analyse the OpenTCP DHCP support, which is also available for the Coldfire. In this case it deviated in several points from RFC 2131, which required random startup and backoff repetition times and lease management theoretically up to about 100 years.
I have an implementation of DHCP which has been well tested and is RFC 2131 conform included in the uTasker operating system with integrated TCP/IP stack. It has a port to the M5223X and a powerful demo project for the EVB or demo board.
See the following posting for links to an on-line demo, documentation and a simple application form - it is free for educational and hobby work, including free email support and has a growing community working on freescale devices.
http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=274
You can download target code to see it in action on your own board here (including DHCP...):
http://www.mjbc.ch/software/uTasker/M5223X/uTaskerV1.2beta005_m5223X.s19
You can also read a note on the DHCP implementation here:
http://www.mjbc.ch/documents/uTasker/uTaskerDHCP.PDF
The uTasker includes a unique real-time simulator enabling complete development and testing of IP applications (and more) on a simulated M5223X running in real time, which typically cuts development time of embedded projects by around 60%. Once the code is working it can be downloaded and verified on the target, cutting out tedious target testing and its inherent lower efficiency.
As I said, it's free, with no strings attached for hobby (and evaluation) work. It is fully supported and not only allows a flying start but is great fun to work with. So don't be shy, the uTasker solution will impress you!!
Regards
Mark Butcher
www.mjbc.ch