User Manual
GD32450I-EVAL
26
/
51
5.12
SPI_QSPI_Flash
5.12.1
DEMO Purpose
This demo includes the following functions of GD32 MCU:
Learn to use the Quad-SPI mode of SPI unit to read and write NOR Flash with the
SPI interface
GD32450I-EVAL board integrates SPI5 module with Quad-SPI mode and the mode can
communicate with external NOR Flash devices. The SPI NOR FLASH is a serial FLASH
memory chip GD25Q16B which size is 16Mbit, the chip supports standard SPI and quad
SPI operation instructions.
5.12.2
DEMO Running Result
The computer serial port line connected to the COM1 port of development board, set the
baud rate of HyperTerminal software to 115200, 8 bits data bit, 1 bit stop bit. At the same
time you should jump the JP5 to USART, and jump the JP12,JP13,JP20 to SPI.
Download the program <12_SPI_QSPI_Flash> to the EVAL board, the HyperTerminal
software can observe the operation condition and will display the ID of the flash, 256
bytes data which are written to and read from flash. Compare the data that were written
to the flash and the data that were read from the flash. If they are the same, the serial
port will output “SPI-GD25Q16 Test Passed!”, otherwise, the serial port will output “Err:
Data Read and Write aren't Matching.”. At last, turn on and off the leds one by one. The
following is the experimental results.