Skip to main content

v2n-xspi-flash-readwrite

Erase + write + verify on the on-module xSPI NOR flash. Reads the manufacturer / device ID, erases a 4 KiB sector, writes a 64-byte ramp pattern, reads it back, compares.

Source: examples/v2n/v2n-xspi-flash-readwrite/.

board.yaml

schema_version: 2

som:
sku: E1M-V2N101

carrier:
name: E1M-X-EVK

cores:
a55_cluster:
os: yocto
app: ./linux
image: alp-image-edge
peripherals: [storage]

diagnostics:
log_level: info

What it shows

  1. Opening the xSPI NOR via <alp/storage.h>.
  2. Reading manufacturer + device ID via JEDEC RDID.
  3. Erasing the test sector (4 KiB at a known offset).
  4. Writing a 64-byte ramp pattern.
  5. Reading it back and confirming byte-for-byte.

See also

Questions about this page? Discuss in Community Forum