The lwip_ping demo application demonstrates a Ping Demo on the lwIP TCP/IP stack which using the ICMP protocol. The application 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.
- Version: 2.16.000
- GCC ARM Embedded 13.2.1
- MCUXpresso 11.10.0
- IAR embedded Workbench 9.60.1
- Keil MDK 5.39.0
- Type-C USB cable
- RJ45 Network cable
- FRDM-MCXN947 board
- Personal Computer
- Connect a USB cable between the PC host and the OpenSDA(or USB to Serial) USB port on the target board.
- Open a serial terminal on PC for OpenSDA serial(or USB to Serial) device with these settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Insert the Ethernet Cable into the target board's RJ45 port and connect it to your PC network adapter.
- Configure the host PC IP address to 192.168.0.100.
- Open a web browser.
- Download the program to the target board.
- Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
When the demo runs, the log would be seen on the terminal like: Initializing PHY...
************************************************
PING example
************************************************
IPv4 Address : 192.168.0.102
IPv4 Subnet mask : 255.255.255.0
IPv4 Gateway : 192.168.0.100
************************************************
ping: send
192.168.0.100
ping: recv
192.168.0.100
3 ms
ping: send
192.168.0.100
ping: recv
192.168.0.100
3 ms
ping: send
192.168.0.100
ping: recv
192.168.0.100
3 ms