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.

cc3200 lauchXL could not initialize and got stuck in SlDrvRxHdrRead VERIFY_PROTOCOL(SyncCnt < SL_SYNC_SCAN_THRESHOLD)

Other Parts Discussed in Thread: CC3200, CC3100, UNIFLASH

Hello All

I am working with the TCP_Socket-Example of cc3200 SDK with CC3200 LauchXL.

The execution got stuck here:

This is called very early from here in main.c: ConfigureSimpleLinkToDefaultState

This line "VERIFY_PROTOCOL" can be expanded to  _SL_ASSERT(expr) from "trace.h" which can be expanded to 
#define _SL_ASSERT(expr)            { if(!(expr)){_SlDrvAssert(__LINE__); } }

Which can be expanded to

#define _SlDrvAssert(line )  { while(1); }       

So, in case of the expression (syncCnt < SL_SYNC_SCAN_THRESHOLD) being false, it enters an endless loop. (While(1))

The Debugger says when being stuck at this line
syncCnt=2000
SL_SYNC_SCAN_THRESHOLD=2000

Can anyone explain what happens here? The problem is, that this cannot be fixed by reset or a powercycle. It seems, als if there is something not initialized correctly. "Magically" it dissappears after a dozen tries and then the example runs fine and continues running.

I found a similar thread which deals with CC3100. There it was "fixed" by removing the call "ConfigureSimpleLinkToDefaultState" from main.c

http://e2e.ti.com/support/wireless_connectivity/f/968/t/359624.aspx

I tried this too, but it got stuck later while trying to start the link to the AP. 

Thanks for your help

Johannes

  • Johannes,

    Can you confirm following -

    1. If device contains any networking application in sFlash then connect SOP2 jumper while debugging from IDE.
    2. Have you done any modification in tcp_socket example? If yes then can you try once other untouched networking example (udp_socket) on the same board.
    3. Have you updated ServicePack on device using UniFlash?
    4. Do you reset the board before loading the code (back to back) from IDE?

    Regards,

    Jitendra

     

  • Hello Jitendra

    Thank you for your advice.
    I upgraded to CC3200 SDK V1.0.0.1 and upgraded CC3200 Lauchpad with Uniflash. I also removed any application which was starting on powerup from ROM.

    Now the described effect is gone.

    But still strange... This routine "ConfigureSimpleLinkToDefaultState" seens not to be able to reset the CC3200 to a default state, as it seems to be influenced by some code, which is running in advance.
    Thanks
    Best regards

    Johannes