User Guide
GD32450Z-EVAL
39
5.26. ENET
5.26.1. FreeRTOS_tcpudp
DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use Lwip stack
Learn to use FreeRTOS operation system
Learn to use netconn and socket API to handle with a task
Learn how to realize a tcp server
Learn how to realize a tcp client
Learn how to realize a udp server/client
Learn how to use DHCP to allocate ip address automatically
This demo is based on the GD32450Z-EVAL-V1.1 board, it shows how to configure the
enet peripherals to send and receive frames in normal mode and use lwip tcp/ip stack to
realize ping, telnet and server/client functions.
JP4, JP5, JP6 must be fitted. JP13 jump to Usart.
It is configured in RMII mode, and 25MHz oscillator is used, the system clock is
configured to 200MHz.
This demo realizes three applications:
1) Telnet application, the eval board acts as tcp server. Users can link the client with
the eval board server, using 8000 port. Users can see the reply from the server, and can
send the name(should input enter key) to server.
2) tcp client application, the eval board acts as tcp client. Users can link the eval board
client with the server, using 1026 port. Users can send information from server to client,
then the client will send back the information.