Example .SPISPEC file formatΒΆ

SPISPEC file for 64Mbit Winbond W25Q64JV (used on XK-VOICE-L71 kit).

This file is required to run the xflash command to program the firmware into the flash memory device.

Comments are inserted with /* .. */.

0,                      /* W25Q64JV - Just specify 0 as flash_id */
256,                    /* page size */
32768,                  /* num pages */
3,                      /* address size */
4,                      /* log2 clock divider */
0x9F,                   /* QSPI_RDID */
0,                      /* id dummy bytes */
3,                      /* id size in bytes */
0,                      /* device id (leave zero) */
0x20,                   /* QSPI_SE */
4096,                   /* Sector erase is always 4KB */
0x06,                   /* QSPI_WREN */
0x04,                   /* QSPI_WRDI */
PROT_TYPE_SR,           /* Protection via SR */
{{0x18,0x00},{0,0}},    /* QSPI_SP, QSPI_SU */
0x02,                   /* QSPI_PP */
0xEB,                   /* QSPI_READ_FAST */
1,                      /* 1 read dummy byte */
SECTOR_LAYOUT_REGULAR,  /* mad sectors */
{4096,{0,{0}}},         /* regular sector sizes */
0x05,                   /* QSPI_RDSR */
0x01,                   /* QSPI_WRSR */
0x01,                   /* QSPI_WIP_BIT_MASK */