EmbeddedRelated.com
Books

C/TCP-IP: The Embedded Protocol Stack and the Texas Instruments Lm3s9b92

Légaré, Christian ● 2012

Book by Légaré, Christian


Why Read This Book

You will get a practical, code-first walkthrough of an embedded TCP/IP stack implementation tailored to the TI LM3S9B92, including Ethernet MAC/PHY handling and real examples. The book teaches the low-level mechanics you need to understand and port network protocols to resource-constrained microcontrollers.

Who Will Benefit

Embedded firmware engineers and IoT developers who write networked firmware on Cortex‑M devices and need a concrete reference for implementing or porting a TCP/IP stack to real hardware.

Level: Intermediate — Prerequisites: Comfortable C programming, familiarity with microcontroller peripherals and interrupts, and basic understanding of networking concepts (IP/ARP/TCP/UDP).

Get This Book

Key Takeaways

  • Implement Ethernet MAC and PHY drivers for the TI LM3S9B92 and similar Cortex‑M devices.
  • Build ARP, IPv4, ICMP, UDP and a basic TCP implementation in C suitable for embedded constraints.
  • Design memory and packet buffer management strategies for small RAM footprints.
  • Integrate the network stack with interrupt-driven I/O and application code on a microcontroller.
  • Port the stack design and drivers to other ARM Cortex‑M microcontrollers and toolchains.
  • Debug and test embedded network stacks using real hardware examples and diagnostic techniques.

Topics Covered

  1. Introduction to Embedded Networking and the LM3S9B92
  2. Overview of the C/TCP‑IP Architecture
  3. Hardware: Ethernet MAC, PHY and Board Setup
  4. Ethernet Frames and ARP Implementation
  5. IPv4 Packet Processing and Routing Basics
  6. ICMP (Ping) and Diagnostic Messages
  7. UDP: Stateless Transport and Applications
  8. TCP: Connection Management, Retransmission and Flow Control
  9. Socket-like API and Example Network Applications (HTTP, simple servers)
  10. Memory Management and Packet Buffer Strategies
  11. Interrupts, Concurrency and Integration with Firmware
  12. Performance Tuning, Testing and Debugging
  13. Porting Guide and Adapting to Other Microcontrollers
  14. Appendices: Source Code, Register Maps and Build Instructions

Languages, Platforms & Tools

CAssemblyTexas Instruments LM3S9B92 (Stellaris, ARM Cortex‑M3)ARM Cortex‑M (generic)Keil MDKTI Code Composer Studio / StellarisWarearm-none-eabi GCC (Makefiles)GDB / OpenOCDEthernet PHY test tools / packet sniffers (Wireshark)

How It Compares

More hands-on and hardware-specific than lwIP/uIP documentation — where lwIP is a mature, feature-rich stack, Légaré's book shows how to build and understand a compact stack from first principles on TI's LM3S9B92.

Related Books

Bryant, Randal, O'Hallaron,...