User Guide
GD32E507Z-EVAL
31/43
<23_TMU_calculation> to the EVAL board. In this demo, the operation mode of the TMU is
configured as mode 0. Use the HyperTerminal to enter the value (the decimal part is 8
significant digits), the value is between -1 and 1. The output value calculated by the TMU
follows the IEEE 32-bit single-precision floating-point format. If there is no overflow event in
TMU, read the output data and light LED3 and LED4, otherwise light LED1 and LED2. If no
error occurs, the TMU calculation result is printed through UASRT0.
5.24. ENET
5.24.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 GD32E507Z-EVAL-V1.0 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.
JP10, JP14, JP15, JP16 must be fitted. JP13 jump to Usart0.
It is configured in RMII mode, and 25MHz oscillator is used, the system clock is configured to
180MHz.
This demo implements 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