xspi_octal_polling_transfer#
Overview#
The xspi_octal_polling_transfer example shows how to use xspi driver with polling:
In this example, xspi will send data and operate the external Nor flash connected with XSPI. Some simple flash command will be executed, such as Write Enable, Erase sector, Program page. Example will first erase the sector and program a page into the flash, at last check if the data in flash is correct.
Supported Boards#
MIMXRT700-EVK
Hardware requirements
Mini/micro USB cable
RT700 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the MCU-Link 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.
Either press the reset button on your board or 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.
XSPI example started!
Vendor ID: 0x2c
Erasing Serial NOR over XSPI...
Erase data - successfully.
Program data - successfully.
IMX952LPD5EVK-19
Hardware requirements
Micro USB cable
IMX952-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
Note
The Micron Serial Nor flash memory model is MT35XU01GBBA.
Prepare the Demo
Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW4 to power on the board.
Connect a micro USB cable between the host PC and the J31 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.
Either re-power up your board or launch the debugger in your IDE to begin running the example.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
FLEXSPI example started!
Vendor ID: 0x2c
Erasing Serial NOR over FlexSPI...
Erase data - successfully.
Program data - successfully.
IMX943-EVK
Hardware requirements
Micro USB cable
IMX943-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
Note
The Micron Serial Nor flash memory model is MT35XU512ABA1G12-0AAT.
Prepare the Demo
Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW4 to power on the board.
Connect a micro USB cable between the host PC and the J31 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.
Either re-power up your board or launch the debugger in your IDE to begin running the example.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
FLEXSPI example started!
Vendor ID: 0x2c
Erasing Serial NOR over FlexSPI...
Erase data - successfully.
Program data - successfully.