I use LogicPD development board and I have SPIwriter_ARM crash. I run SPIwriter_ARM and type file name. After this the SPIwriter_ARM is crashed. The file spi_mem.c has a next strings (531-549)
do { // Send Read Status Register Commeand SPI_enableCS(hSPIMemInfo->hSPIInfo); SPI_xferOneChar(hSPIMemInfo->hSPIInfo,SPI_MEM_CMD_RDSR); statusReg = SPI_xferOneChar(hSPIMemInfo->hSPIInfo,0x00); SPI_disableCS(hSPIMemInfo->hSPIInfo); } while((statusReg & 0x3u) != 0x2);
The statusReg value is always 0. In the osciloscope I see the 0x2 value from DOUT pin of SPI Flash. Where is a problem?