AM261x MCU+ SDK: OSPI Flash DMA

| AM261x MCU+ SDK 26.00.00 |

OSPI Flash DMA

# Introduction

This example demonstrates the OSPI low latency transfer using DMA. 16 bytes of known data are written to the flash. This data is then read back ten times by adjusting the TRPD for infinite TR reload. By this way the read can be done with really low latencies. The read back data is then compared with the known, sent data.

The average time for transfers is then printed out, and if all transfers were successful, the test result is passed otherwise failed.

# Supported Combinations

Parameter | Value
--- | ---
CPU + OS | r5fss0-0 nortos
Toolchain | ti-arm-clang
Boards | am261x-som, am261x-lp
Example folder | examples/drivers/ospi/ospi_flash_diag_lld

# 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

[OSPI] DMA low latency example started...
OSPI Write 16 bytes in 449758 ns
OSPI Read 16 bytes in 1888 ns
OSPI Read 16 bytes in 1578 ns
OSPI Read 16 bytes in 1508 ns
OSPI Read 16 bytes in 1498 ns
OSPI Read 16 bytes in 1498 ns
OSPI Read 16 bytes in 1498 ns
OSPI Read 16 bytes in 1498 ns
OSPI Read 16 bytes in 1502 ns
OSPI Read 16 bytes in 1498 ns
OSPI Read 16 bytes in 1498 ns
Average time for OSPI Read 16 bytes in 1546 ns
All tests have passed !!!