User Guide
GD32450Z-EVAL
43
when send something through the assistant, users can see the echo reply from the board:
Open the DHCP function in main.h, using a router to connect the board with the pc, users
can see the automatic allocated ip address of the board from the HyperTerminal.
5.26.3. Raw_webserver
DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use Lwip stack
Learn to use raw API to handle with a task
Learn how to realize a web server
Learn how to use a web server to control LEDs
Learn how to use a web server to monitor the board V
REFINT
voltage
Learn how to use DHCP to allocate ip address automatically
Learn to handle with received packet in polling mode and in interrupt mode
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 webserver application.
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 webserver application:
Users can visit the eval board through Internet Explorer, the eval board acts as a
webserver, and the url is the local ip address of the eval board. There are two experiments
realized, one is the LEDs control, the other one is the ADC monitoring V
REFINT
voltage in
real-time.
If users need dhcp function, it can be configured from the private defines in main.h. This
function is closed by default. Users can use a router to connect the eval board, and use
the COM port to print the automatic allocated ip address, then connect your mobile phone
to the wifi which the router send. Users can visit the eval board and control it on your