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.

CC3200-LAUNCHXL: Interfacing cc3200 with external S-flash(w25q808b)

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200SDK,

HI,

I wanted to interface S-Flash(w25q808b) which is inbuilt in CC3200-LaunchXL board to store the data. I tried to develop using spi_demo project provided in cc3200sdk. 

// Configure PIN_05 for SPI0 GSPI_CLK
MAP_PinTypeSPI(PIN_11, PIN_MODE_0);

// Configure PIN_06 for SPI0 GSPI_MISO
MAP_PinTypeSPI(PIN_13, PIN_MODE_0);

// Configure PIN_07 for SPI0 GSPI_MOSI
MAP_PinTypeSPI(PIN_12, PIN_MODE_0);

// Configure PIN_08 for SPI0 GSPI_CS
MAP_PinTypeSPI(PIN_14, PIN_MODE_0);

MAP_SPIReset(SSPI_BASE); //GSPI_BASE

// Configure SPI interface
MAP_SPIConfigSetExpClk(SSPI_BASE,MAP_PRCMPeripheralClockGet(PRCM_SSPI),SPI_IF_BIT_RATE,SPI_MODE_MASTER,SPI_SUB_MODE_0, (SPI_SW_CTRL_CS |

SPI_4PIN_MODE |
SPI_TURBO_OFF |
SPI_CS_ACTIVEHIGH |
SPI_WL_8));                   // GSPI_BASE


// Enable SPI for communication
MAP_SPIEnable(SSPI_BASE); //GSPI_BASE

MAP_SPICSEnable(SSPI_BASE);//GSPI_BASE

MAP_SPIDataPut(SSPI_BASE,0x90000000); //GSPI_BASE reading device id

MAP_SPIDataGet(SSPI_BASE,&ulDummy); //GSPI_BASE

MAP_SPICSDisable(SSPI_BASE); //GSPI_BASE

The response from flash is 0x00,could you please help me out in finding the mistake which i am making in the code.

2.I also tried using file operations project provided in the sdk but there is no spi interfacing code for s-flash.

Regards,

Shafi 

  • Hi Shafi,

    Direct access into SPI flash is not supported. Supported is access only via NWP filesystem sl_ APIs.

    Although direct access into SPI flash may to be technically possible, you should not do this. Because this will cause corruption of internal filesystem.

    Jan