Other Parts Discussed in Thread: UNIFLASH, CC3200, CC3100,
Hello Team,
I have a customer who is interfacing the CC3135 with the STM32. No trouble at all. However, during the initialization sequence, error 4111 is returned. Everything is setup based on the guide (cc3135-programmers-guide-swru455h.pdf).
The code below was used.
Customer comments & questions:
“I tried to send commands to re-format the file system using sl_FsCtl() API but start still fails with the same error.
Our use case for CC3135 is only to scan the SSIDs but will not be used for any other WIFI access point or endpoint (at least for now) Just fyi.”
1. Can we use the CC3135 without the SPI flash?
2. How can we fix the -4111 error?
Thank you for your help!
Cheers,
Fadi
Code:
lMode = sl_Start(0, 0, 0);
TRACE(TRACE_FLAG_ALWAYS," Start Mode %d", lMode);
if(lMode == SL_ERROR_FS_CORRUPTED_ERR)
{
_i32 slRetVal;
SlFsRetToFactoryCommand_t RetToFactoryCommand;
_i32 RetVal, ExtendedError;
TRACE(TRACE_FLAG_ALWAYS,"returning to factory image");
RetToFactoryCommand.Operation = SL_FS_FACTORY_RET_TO_DEFAULT;
slRetVal = sl_FsCtl( (SlFsCtl_e)SL_FS_CTL_RESTORE, 0, NULL , (_u8 *)&RetToFactoryCommand , sizeof(SlFsRetToFactoryCommand_t), NULL, 0 , NULL );
if ((_i32)slRetVal < 0)
{
//Pay attention, for this function the slRetVal is composed from Signed RetVal & extended error
RetVal = (_i16)slRetVal>> 16;
ExtendedError = (_u16)slRetVal& 0xFFFF;
TRACE(TRACE_FLAG_ALWAYS,"\tError SL_FS_FACTORY_RET_TO_IMAGE, 5d, %d\n", RetVal, ExtendedError);
return slRetVal;
}
TRACE(TRACE_FLAG_ALWAYS,"sl_FsCtl %d", slRetVal);
delayMs(60*1000);
//Reset
sl_Stop(0);
delayMs(1000);
lMode = sl_Start(0, 0, 0);
TRACE(TRACE_FLAG_ALWAYS," Start Mode %d", lMode);
}
Here is the logs:
0000:00:00: 00:00:03.165: [POWER OFF WIFI CC3135] nHIB LOW, RST HIGH
0000:00:00: 00:00:03.188: [POWER ON WIFI CC3135] RST LOW, nHIB HIGH
0000:00:00: 00:00:04.666: cc3135-uart-rx: badccdab08001400
0000:00:00: 00:00:04.681: driver read 8 bytes from cc3135 remaining 20
0000:00:00: 00:00:04.707: cc3135-uart-rx: 2404040600000000 $
0000:00:00: 00:00:04.721: driver read 8 bytes from cc3135 remaining 12
0000:00:00: 00:00:04.747: cc3135-uart-rx: 888888880000003100000000 1
0000:00:00: 00:00:04.764: driver read 12 bytes from cc3135 remaining 0
0000:00:00: 00:00:04.779: sl_Start returned Mode -4111 sl_Start() returned -4111 (FS ERROR)
Trying to reset the File system to default (formatting??)
0000:00:00: 00:00:04.788: returning to factory image
0000:00:00: 00:00:04.799: cc3135-uart-tx: ffeeddbb21433412 !C4
0000:00:00: 00:00:04.815: cc3135-uart-tx: 4ba41400 K
0000:00:00: 00:00:04.829: cc3135-uart-tx: 0000000000bc01080000000004000000
0000:00:00: 00:00:04.850: cc3135-uart-tx: 02000000
0000:00:00: 00:00:05.128: cc3135-uart-rx: badccdab4b241400 K$
0000:00:00: 00:00:05.143: driver read 8 bytes from cc3135 remaining 20
0000:00:00: 00:00:05.169: cc3135-uart-rx: 2304040600000000 #
0000:00:00: 00:00:05.183: driver read 8 bytes from cc3135 remaining 12
0000:00:00: 00:00:05.209: cc3135-uart-rx: 000000000000000000000000
0000:00:00: 00:00:05.226: driver read 12 bytes from cc3135 remaining 0
0000:00:00: 00:00:05.241: sl_FsCtl 0
Starting the chip again
0000:00:00: 00:01:05.248: [POWER OFF WIFI CC3135] nHIB LOW, RST HIGH
0000:00:00: 00:01:06.273: [POWER OFF WIFI CC3135] nHIB LOW, RST HIGH
0000:00:00: 00:01:06.296: [POWER ON WIFI CC3135] RST LOW, nHIB HIGH
0000:00:00: 00:01:07.771: cc3135-uart-rx: badccdab08001400
0000:00:00: 00:01:07.786: driver read 8 bytes from cc3135 remaining 20
0000:00:00: 00:01:07.812: cc3135-uart-rx: 2404040600000000 $
0000:00:00: 00:01:07.827: driver read 8 bytes from cc3135 remaining 12
0000:00:00: 00:01:07.852: cc3135-uart-rx: 888888880000003100000000 1
0000:00:00: 00:01:07.870: driver read 12 bytes from cc3135 remaining 0
0000:00:00: 00:01:07.885: sl_Start returned Mode -4111 sl_Start returned -4111 (FS ERROR)
