This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP L-138 SPIwriter_ARM crash

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?

  • Alexander,

    Is it possible for you to use the serial flash host (sfh) tool inside that package and provide us the log that is provided on the UART on the host machine? Also, could you mention if you have modified the source or are you using the source as is? when you see the data on the Dout pin do you also see the clock running? What could also help  is getting a dump of SPI registers from the register view in CCS to see if there is any error detected in the hardware.

    Regards,

    Rahul