Other Parts Discussed in Thread: CC3100
Tool/software: TI-RTOS
Hi Everyone,
To give a brief info about what I'm trying to achieve
I have TM4C129X development board and trying to integrate cc3100 wifi module with it. Im using simplelink libraries and successful in communicating with sample wifi example
Now when it comes to modifying the SPI pins as per my proto board , Im facing issue where after successful "WiFi_open(Board_WIFI, Board_WIFI_SPI, NULL, &wifiParams);" function call , next when it calls "sl_Start" the system hangs and i cant debug further since "sl_Start" is a library, so im assuming there is some routine inside "sl_Start" which is waiting for some ACK from Wifi chip.
I also observed that if i change the IRQ pin from PORT M.3 to some other pin for example PORT P.0 (other pins left unchanged) the firmware again waits in infinite loop
Below is my initialization code
WiFiCC3100_Object wiFiCC3100Objects[EK_TM4C129EXL_WIFICOUNT];
const WiFiCC3100_HWAttrs wiFiCC3100HWAttrs[EK_TM4C129EXL_WIFICOUNT] = {
{
.irqPort = GPIO_PORTM_BASE,
.irqPin = GPIO_PIN_3,
.irqIntNum = INT_GPIOM,
.csPort = GPIO_PORTB_BASE,
.csPin = GPIO_PIN_4,
.enPort = GPIO_PORTP_BASE,
.enPin = GPIO_PIN_1
}
};
const WiFi_Config WiFi_config[] = {
{
.fxnTablePtr = &WiFiCC3100_fxnTable,
.object = &wiFiCC3100Objects[0],
.hwAttrs = &wiFiCC3100HWAttrs[0]
},
{NULL,NULL, NULL},
};
/*
* ======== EK_TM4C129EXL_initWiFi ========
*/
void EK_TM4C129EXL_initWiFi(void)
{
/* Configure EN & CS pins to disable CC3100 */
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, GPIO_PIN_4);
GPIOPinTypeGPIOOutput(GPIO_PORTP_BASE, GPIO_PIN_1);
GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_4, GPIO_PIN_4);
GPIOPinWrite(GPIO_PORTP_BASE, GPIO_PIN_1, 0);
/* Configure SSI2 for CC3100 */
SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI1);
GPIOPinConfigure(GPIO_PB5_SSI1CLK);
GPIOPinConfigure(GPIO_PE4_SSI1XDAT0);
GPIOPinConfigure(GPIO_PE5_SSI1XDAT1);
GPIOPinTypeSSI(GPIO_PORTE_BASE, GPIO_PIN_4 | GPIO_PIN_5 );
GPIOPinTypeSSI(GPIO_PORTB_BASE, GPIO_PIN_5);
/* Configure IRQ pin */
GPIOPinTypeGPIOInput(GPIO_PORTM_BASE, GPIO_PIN_3);
GPIOPadConfigSet(GPIO_PORTM_BASE, GPIO_PIN_3, GPIO_STRENGTH_2MA,
GPIO_PIN_TYPE_STD_WPD);
GPIOIntTypeSet(GPIO_PORTM_BASE, GPIO_PIN_3, GPIO_RISING_EDGE);
SPI_init();
EK_TM4C129EXL_initDMA();
WiFi_init();
}
Thanks in Advance
-Prajnith