AM64x MCU+ SDK  08.02.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
Board am64x-evm
Example folder examples/drivers/ospi/ospi_flash_dma

Steps to Run the Example

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 !!!