qspi_wevk_polling_transfer#
Overview#
The qspi_polling example shows how to use qspi driver with polling:
In this example, qspi will send data and operate the external flash connected with QSPI. Some simple flash command will be executed, such as Write Enable, Erase sector, Program page. Example will first erase the sector and programe a page into the flash, at last check if the data in flash is correct.
Notice: While do program, it is not suggested to make the flash write frequency bigger than the core clock frequency. In some tool chain’s Debug version, this may cause core do not have enough speed to send data to flash. The flash write frequency equals to QSPI working frequency plus data line number. For example, if QSPI working in 48MHz, program command uses quad mode, the write frequency is 48MHz * 4 = 192MHz.
Supported Boards#
EVK-MIMX8MQ
Hardware requirements
Micro USB cable
MIMX8MQ-WEVK board
J-Link Debug Probe
12V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 12V power supply and J-Link Debug Probe to the board, switch SW701 to power on the board
Connect a USB cable between the host PC and the J1701 USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
QSPI example started!
Erase finished!
Program data finished!
Program through QSPI polling succeed!