User Manual
GD32450I-EVAL
38
/
51
Learn how to use DHCP to allocate ip address automatically
This demo is based on the GD32450I-EVAL 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.
JP12, JP13, JP17, JP18, JP20, JP22 must be fitted. JP5 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.
3) udp application. Users can link the eval board with another station, using 1025 port.
Users can send information from station to board, then the board will send back the
information.
If users need dhcp function, it can be configured from the private defines in main.h. This
function is closed by default.
Note: Users should configure ip address, mask and gw of GD32450I-EVAL board or
served according to the actual net situation from the private defines in main.h.
DEMO Running Result
Download the program <FreeRTOS_tcpudp> to the EVAL board, LED3 will light every
500ms.
Using Network assistant software, configure the pc side to tcp client, using 8000 port,
and when send something through the assistant, users can see the reply from the
server:
Using Network assistant software, configure the pc side to tcp server, using 1026 port,
and when send something through the assistant, users can see the echo reply from the