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.

CC3100: Host Programming using SPI

Part Number: CC3100
Other Parts Discussed in Thread: UNIFLASH

Trying to update our CC3100 firmware using the host programming over SPI.

Using service pack ota_1_0_1_13_2_11_0_1_ucf.

read_version ok but file open create fails with error -101.

Reading version failed. Error code: -100

This is a CC3100R device
NWP 0.219.108.0
MAC 31.243.0.179.255
PHY 124.41.0.0


Openning ServicePack file

/* create/open the servicepack file for 128KB with rollback, secured and public write */
CLI_Write((_u8 *)"\r\nOpenning ServicePack file");
retVal = sl_FsOpen("/sys/servicepack.ucf" ,
FS_MODE_OPEN_CREATE(LEN_128KB, _FS_FILE_OPEN_FLAG_SECURE | _FS_FILE_OPEN_FLAG_COMMIT | _FS_FILE_PUBLIC_WRITE),
&Token, &fileHandle);
if(retVal < 0)
{
sprintf(printBuffer, "\r\nCannot open ServicePack file. Error code: %d", (int)retVal);
CLI_Write((_u8 *)printBuffer);

We don't have serial connection for CC3100 pins, only SPI interface.

Any ideas what this won't work ? Other options ?

Clark