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.
你好,我在用TI提供的CC3000的例程在调试Wi-Fi的时候发现程序总是死在SPI.c 中 while (sSpiInformation.ulSpiState != eSPI_STATE_INITIALIZED) 这里,大概是哪里的原因,谢谢!
long SpiWrite(unsigned char *pUserBuffer, unsigned short usLength) { unsigned char ucPad = 0; // // Figure out the total length of the packet in order to figure out if there is padding or not // if(!(usLength & 0x0001)) { ucPad++; } pUserBuffer[0] = WRITE; pUserBuffer[1] = HI(usLength + ucPad); pUserBuffer[2] = LO(usLength + ucPad); pUserBuffer[3] = 0; pUserBuffer[4] = 0; usLength += (sizeof(btspi_hdr) + ucPad); if (sSpiInformation.ulSpiState == eSPI_STATE_POWERUP) { while (sSpiInformation.ulSpiState != eSPI_STATE_INITIALIZED) ; }
1, 你先下载driver patch, 等LED5和LED8亮
2, 再下载firmware patch, 等LED5和LED8亮
上面的是更新CC3000的firmware, 你说的没错。然后再用IAR下载示例程序试试看,这个不会覆盖patch programmer.
先不要用你的程序,用SDK里面的例子看看。