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.

Problems with CC3100 initialization

Other Parts Discussed in Thread: CC3100, CC3100BOOST

Hi,

I'm having problems with CC3100 initialization with STM32 MCU. The hardware setup is genarally following the one described here: processors.wiki.ti.com/.../Staging:CC31xx_%26_STM32F4_Bringup_Guide (I use different pins for SPI and has direct serial logging from my STM board, J5 on board is open, power from USB).

I am trying with client demo app. The driver gets stuck waiting for synchronization word (configureSimpleLinkToDefaultState->sl_Start->...->_SlDrvRxHdrRead())

this is what I see is going on on the bus (I attach image: four lines at the top are SPI decode, then the signals are: clock, mosi, miso, cs, irq)

according to the CC31xx_SPI_Host_Interface I can see the driver sends sync word 0x65 0x87 0x78 0x56, then the interrupt gets low (so the sync word is recognised by cc3100?) then I am not able to receive correct sync word from device. Have you got any suggestions on why the device is responding with the bytes: 0x73 0x64 0xD1?

Best regards,

Jacek

  • Hi,

    I'm just getting started with this chip myself so I am no expert but one thing I noticed in the example diagrams was that after the sync word is written, the CS line gets raised before continuing on (lowering it again for the next read/write). I don't see your logic analyzer show that happening in your execution.  Perhaps try that?

    Michael

  • Hi,

    it appears that the problem was with power - even though I used externally powered USB hub. Only when I used dedicated power supply for the cc3100 board the response was correct - so now I receive the sync word from cc3100 but still the initialisation does not complete. The driver now seems to be stuck in sl_DevGet .. SLNonOsMainLoopTask waiting for IRQ from cc3100, but it never rises IRQ. I got it only once and it gets low after receiving sync word.

  • Just to leave the thread with the solution: cc3100boost board power was the first problem (after connecting external power source sync words were exchanged correctly). The second problem (no irq after sync with the chip) was resolved when I switched to manual control of CS pin (following suggestion of Michael - thanks).