Hi,
Is there any programming guide about how to apply cc3100 on the platform with OS?
thanks
Gavin
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.
Hi Gavin,
CC3100 Simplelink Host driver can be ported to OS platform by configuring OS handler in user.h file.For sample usage, please refer to slimplelinkstudio platform/user.h in CC3100 SDK,
cc3100sdk/platforms/simplelinkstudio/user.h
Also, freeRTOS and TI RTOS port in CC3200SDK can be referenced for porting.
Regards,
Geet
Hi Geet
I refer the sample code to init cc3100 in task routine, but it seems that can't get the feedback from the init callback function and it's always blocked in the while loop, so cc3100 can't be initialized. I use the such code on the platform.
void InitCallback(UINT32 Status)
{
g_ulDeviceNetworkMode = Status;
g_usStatusInfo |= MCU_SLHost_INIT;
}
void WlanTestTask( void *pvParameters )
{
bool bTestOn;
/* Initializing the CC3100 device */
sl_Start(0, 0, InitCallback);
while(!(g_usStatusInfo & MCU_SLHost_INIT))
{
//looping till simplelink starts
}
/*set NWP as station mode */
sl_WlanSetMode(ROLE_STA);
for ( ;; )
{
if( xQueueReceive( g_xWlanTestQueue, &( bTestOn ), portMAX_DELAY ) ){}
}
}
Do you have any idea about it.
thanks
Gavin
Hi Geet
In the previous post, I said that system was blocked in init callback function. So I try to remove it and I got another result, the system will be blocked in FaultISR loop after calling
"OSI_RET_OK_CHECK(sl_SyncObjWait(&g_pCB->ObjPool[pObjIdx].SyncObj, SL_OS_WAIT_FOREVER));" in device.c
Do you have any suggestion?
thanks
Gavin
Hi Gavin,
It seems that you are not getting the init complete message, maybe you host MCU isn't handling IRQ correctly.
Can you please describe your environment a bit more? which MCU are you using?
Can you please try running the "spi_debug_tool" example? and update if it succeeds or not? it will verify that the SPI & IRQ lines are connected properly.
Thanks,
Alon
HI Alon
My platform is TM4C123G EVM + cc3100 BP2.0, SDK0.5.
This platform can work on non-os environment, so SPI/IRQ should be connected properly.
I use the same SPI and simplelink source on OS environment.
I check one different in the init process between non-os and os.
In os part, it seems that there is something wrong in the sync obj list, I attach the screenshot of CCS.
Do you know what is the cause of this?
thanks
Gavin
Hi,
I get the bootloader version: 2.0.2.3 and chip version:3 from uniflash.
I 'd like to confirm this version can support the OS porting.
Is there anyone can help to confirm?
thanks
Gavin