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.

CC3100 hangs - driver.c line#1236

Other Parts Discussed in Thread: UNIFLASH, CC3100, CC3100BOOST

I was able to successfully port the driver into my RTOs. I was able to setup the module into an AP with a DHCP server. However, after trying to attempt to re-initialize the device again, the device will hang right at this line:

while ( ! N2H_SYNC_PATTERN_MATCH(pBuf, g_pCB->TxSeqNum) ) (driver.c #1236)

 

I even tried to get it to run with the EMUBOOST board and the sample VS project but it will do the same thing. I tried to reformat it with the uniflash application and re-load the service pack hoping that it will set it back to mnfg default. The device is stuck with the previous settings and it will not allow me to change settings or control it at all.

 

SPI traffic logs:

 

Index m:s.ms.us Dur         Len Err Record         Data
0 0:00.000.000    Capture started [10/24/14 18:58:15]
1 0:27.015.183 195.800 us 4 B  Transaction 8700 6500 7800 5600
4 0:27.016.392 255.300 us 4 B  Transaction 00AB 00CD 00DC 00BC
7 0:27.017.663 146.800 us 4 B  Transaction 0000 0008 0000 0008
10 0:27.018.825 146.800 us 4 B  Transaction 0000 0000 0000 0000
13 0:27.020.005 146.700 us 4 B  Transaction 0033 0033 0033 0033
16 0:27.021.415 304.400 us 4 B  Transaction 8700 6500 7800 5600
19 0:27.022.732 146.800 us 4 B  Transaction 00AB 00CD 00DC 00BD
22 0:27.023.894 146.800 us 4 B  Transaction 0000 0078 0000 0008
25 0:27.025.057 146.800 us 4 B  Transaction 0017 0000 0000 0000
28 0:27.026.270 146.800 us 4 B  Transaction 0033 0033 000B 00AD
31 1:38.772.465    Capture stopped [10/24/14 18:59:54]

 

  • Has anyone encounter the above problem. Please let me know.

  • Hi Cespinoz,

    Formatting and re-flashing the device should restore the default configuration.

    Few questions:

    • Did you select the secure option while formatting the device? (secure option should be checked for CC3100)
    • which SDK version you are using?

    Regards,

    Ankur

  • Hi Ankur1,

    Yes I did.

    When you said re-flashing, are you talking about the service pack .bin file or are you referring to a different firmware file?

    SDK version: v1.0.0

    Service Pack version: v1.0.0.1

    Were you able to check the SPI logs? Do you see anything in there that can provide me with any information

  • Hi,

    Yes, With re-flashing I am referring to the service pack file.

    • Can you try 'getting_started_with_wlan_station' application from the SDK?
    • Can you please share the logic file for failed case and the corresponding code snippet?

    Regards,

    Ankur

  • Ankur,

    I tried the VS (getting_started_with_wlan_station'project) project; it hangs also. Please remember that this board was functional with the sample projects and my environment. It worked in my environment a couple of times then it stopped working. 

    It happens right in this function (VS project) - EMUBOOST setup)

    1. configureSimpleLinkToDefaultState()

        a. sl_Start(0, pConfig, 0); (it never starts)

    The code is straight from the core API driver .

    while ( ! N2H_SYNC_PATTERN_MATCH(pBuf, g_pCB->TxSeqNum) )

    {

    /* 3. Debug limit of scan */

    VERIFY_PROTOCOL(SyncCnt < SL_SYNC_SCAN_THRESHOLD);

    /* 4. Read next 4 bytes to Low 4 bytes of buffer */

    if(0 == (SyncCnt % (_u32)SYNC_PATTERN_LEN))

    {

    NWP_IF_READ_CHECK(g_pCB->FD, &pBuf[4], 4);

    _SL_DBG_SYNC_LOG(SyncCnt,pBuf);

    }

    /* 5. Shift Buffer Up for checking if the sync is shifted */

    _SlDrvShiftDWord(pBuf);

    SyncCnt++;

    }

    Please let me know if you need more info.

  • Just to confirm your application hangs inside function 'sl_Start()' at line highlighted in yellow, both while using the EMUBOOST and MCU.

    while ( ! N2H_SYNC_PATTERN_MATCH(pBuf, g_pCB->TxSeqNum) )

    {

     /* 3. Debug limit of scan */

    VERIFY_PROTOCOL(SyncCnt < SL_SYNC_SCAN_THRESHOLD);

     /* 4. Read next 4 bytes to Low 4 bytes of buffer */

     if(0 == (SyncCnt % (_u32)SYNC_PATTERN_LEN))

    {

    NWP_IF_READ_CHECK(g_pCB->FD, &pBuf[4], 4);

    _SL_DBG_SYNC_LOG(SyncCnt,pBuf);

    }

    What are the jumper settings on your CC3100 BP and EMUBOOST board?

    Can you please share the logic file capturing the following CC3100 BP pins of header to help analysing the issue further?

    1. Host IRQ pin (P2.2)
    2. SPI Lines
      1. CS (P2.3)
      2. CLK (P1.7)
      3. DIN (P1.6)
      4. DOUT (P1.7)

    Regards,

    Ankur

  • Please capture the nHIB pin (P1.5) also.

    Regards,

    Ankur

  • 4657.500ms_Div.zip

    After looking into it further - it never breaks out from the while loop. Yes with both EMU and MCU.

    Using jumpers recommended from the documentation (SDK | gettingStartedGuide | fig1 and fig 2).

    O-scope captures: SPI lines with Irq and Clk are attached. These captures were done using the EMU board not my setup.

    Fyi - I ordered new CC3100EMUBOOST and CC3100BOOST boards. I'll capture the SPI traffic with the boards and will post it here so we can use it as a baseline.

  • Yes , I have the same problem ,how to solve it?

    Looped:

    VERIFY_PROTOCOL(SyncCnt < SL_SYNC_SCAN_THRESHOLD);

  • Hello,

    I would also like to request help with this same issue. My application and sample application DID work reliably and now it no longer works. The debugger shows it stuck on this line:

    VERIFY_PROTOCOL(SyncCnt < SL_SYNC_SCAN_THRESHOLD);

    At this point in time SyncCnt = 2000, which is SL_SYNC_SCAN_THRESHOLD.

    sy.