xspi_psram_polling_transfer#
Overview#
The xspi_psram_polling_transfer example shows how to use xspi driver with polling:
In this example, xspi will send data and operate the external PSRAM connected with XSPI. Some simple flash command will be executed, such as Read Data and Write Data. Example will write/read through the whole chip, through IP command and AHB command.
Supported Boards#
MIMXRT700-EVK
Hardware requirements
Mini/micro USB cable
RT700 board
Personal Computer
Board settings
In default, XSPI2 is used. No special settings are required. The driver example and board schematic also support change to use XSPI1. Please refer to the following steps:
In app.h file, change the following macro definition:
#define DEMO_USE_XSPI2 0
#define DEMO_USE_XSPI1 1Change default jumper of JP45 from 2-3 to 1-2.
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!
AHB Command Read/Write data successfully at all address range !
IP Command Read/Write data successfully at all address range !
FRDM-IMXRT700
Hardware requirements
Type-C USB cable
RT700 board
Personal Computer
Board settings
In default, XSPI2 is used. No special settings are required. The driver example and board schematic also support change to use XSPI1. Please refer to the following steps:
In app.h file, change the following macro definition:
#define DEMO_USE_XSPI2 0
#define DEMO_USE_XSPI1 1Change default jumper of JP45 from 2-3 to 1-2.
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!
AHB Command Read/Write data successfully at all address range !
IP Command Read/Write data successfully at all address range !