Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Ping Demo on lwIP TCP/IP Stack

This demo application demonstrates the Ping demo on lwIP TCP/IP stack with bare metal SDK or different RTOSes.

Overview

This is a Ping Demo on the lwIP TCP/IP stack which uses the ICMP protocol. The application on board periodically sends the ICMP echo request to a PC and processes the PC reply. Type the "ping $board_address" in the PC command window to send an ICMP echo request to the board. The lwIP stack sends the ICMP echo reply back to the PC.

Supported RTOS

Supported Hardware

These Freescale Freedom development platforms and Tower System modules are supported by the KSDK Ping demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

See the lwIP TCPIP Stack and Kinetis SDK Integration User'’s Guide (document KSDKLWIPUG) for instructions and requirements.

Prepare the Demo

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

For detailed instructions, see a Kinetis SDK User's Guide for your board.

Network Configuration

Configure the IP address of PC network adapters as shown:

Run the demo

  1. Download the program to the target board.
  2. Connect the Ethernet cable between the PC and the board.
  3. When successfully connected, reset the board to run the demo.
  4. Open the terminal. Ping send and ping receive are successful.
  5. Type in "ping 192.168.2.102" in PC command window. If the operation is successful, four packets are successful replied.