AM261x MCU+ SDK: OSPI Nand Flash IO

| AM261x MCU+ SDK 26.00.00 |

OSPI Nand Flash IO

# Introduction

This example demonstrates basic read write to the OSPI Nand flash configured in polled mode of operation. APIs from flash driver are used to read and write to the flash. The underlying OSPI reads and writes are taken care by the flash APIs.

To use NAND flash the following steps are required :

1. Set flash type to Serial Nand in Syscfg
2. Select OSPI Chip Select CS1
3. Drive the GPIO37 pin to low (OSPI/QSPI_MUX_SEL - low for QSPI nand flash)

The example writes known data to a particular offset in the flash and then reads it back. The read back data is then compared with the written known data.

When the comparisons match, test result is passed otherwise failed.

# Supported Combinations

# Steps to Run the Example

- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run

# See Also

OSPI

# Sample Output

All tests have passed!!