JEDEC MSPI-NOR flash

Overview

This sample demonstrates using the flash API on a MSPI NOR serial flash memory device. While trivial it is an example of direct access and allows confirmation that the flash is working and that automatic power savings is correctly implemented.

Building and Running

The application will build only for a target that has a devicetree flash0 alias that refers to an entry with the following bindings as a compatible:

west build -b apollo3p_evb samples/drivers/mspi/mspi_flash
west flash

Sample Output

*** Booting Zephyr OS build zephyr-v2.3.0-2142-gca01d2e1d748  ***

JEDEC MSPI-NOR flash testing
==========================

Test 1: Flash erase
Flash erase succeeded!

Test 2: Flash write
Attempting to write 4 bytes
Data read matches data written. Good!

See also

FLASH Interface