xflash Release\appname.xe --spi-spec M25P16.f
I get "Error: F03020 An unrecoverable error has occurred; exiting." back from xrun.
I've verified with a scope that the flash is getting proper signals, and it is answering something, so there is communication. But it just isn't the right thing, apparently.
Clearly I'm doing something wrong, but I can't see what it is.
Here's the M25P16 spec file:
Code: Select all
7, /* inexplicable ID */
256, /* page size */
8192, /* num pages */
3, /* address size */
8, /* log2 clock divider */
0x9f, /* SPI_RDID */
0, /* id dummy bytes */
3, /* id size in bytes */
0x202015, /* device id */
0xD8, /* SPI_SSE */
0, /* full sector erase */
0x06, /* SPI_WREN */
0x04, /* SPI_WRDI */
0, /* no protection */
{{0,0},{0,0}}, /* no values */
0x02, /* SPI_PP */
0x0b, /* SPI_READFAST */
0, /* No read dummy byte */
SECTOR_LAYOUT_REGULAR, /* sane sectors */
{65536,{0,{0}}}, /* regular sector size */
0x05, /* SPI_RDSR */
0x01, /* SPI_WRSR */
0x01, /* SPI_WIP_BIT_MASK */
Paul