User Manual
GD32450I-EVAL
40
/
51
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. If the server is not online at first,or is break
during process, when the server is ready again, users can press tamper key to
reconnect with server, and communicate.
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.
By default, the packet reception is polled in while(1). If users want to receive packet in
interrupt service, uncomment the macro defined USE_ENET_INTERRUPT in main.h.
If users need dhcp function, it can be configured from the private defines in main.h. This
function is closed in default.
Note: Users should configure ip address, mask and gw of GD32450I-EVAL board, or
server according to the actual net situation from the private defines in main.h.
DEMO Running Result
Download the program <Raw_tcpudp> to the EVAL board.
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: