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.

CC3220MOD: sl_start() return -2005 (give some help,thank you )

Part Number: CC3220MOD
Other Parts Discussed in Thread: CC3120MOD, CC3120

Hi:

       I  try to port CC3120MOD drive to STM32, the platform is STM32 + KEIL + FREERTOS9.0. when I start the sl_start(),return -2005,

I debug my program by step , I found  when go into the sl_start() ,MCU send data 08 00 76 D0 to CC3120 by SPI ,and next MCU read data

20 00 54 F8 and next MCU read data 20 00 54 FC again,  the next the sl_star()return -2005, please give me some suggestion about this question.

thank you very much.

  • Hi:

          I debug my program by step ,I found when go into sl_start() , -2005 is returned in function  _SLDrvSyncObjWaitTimeout() , and I found some code in this function

    _SLReturnVal_t   _SLDrvSyncObjWaitTimeout()

    {

    _SLReturnVal_t ret = SL_SyncObjWait();

    if(ret)

    {

        _SLDrvHandleFataError();

        return  (SL_API_ABORTED);
    }

    else if(SL_IS_RESTART_REQUIRED)

    {

    return (SL_API_ABORTED);

    }

    return  (SL_RET_CODE_OK);

    }

    the function is inelse if(SL_IS_RESTART_REQUIRED) return -2005.

    pelae give me some help ,thank you .

  • Hi:

        I have a new found ,when go into sl_start(), an error  SL_DEVICE _EVENT_TATAL_SYNC_LOSS happend, so sl_start() return -2005.   please give some  suggestion about this question .

  • Hi,

    It looks like you have some issue with the SPI.

    The values you mentioned are not as expected and thus the SYNC_LOSS error.

    br,

    Kobi

  • Hi,

    I assume that you have resolved your issue since we have not heard back from you. If not, feel free to post a response to this thread, or open a new thread regarding this issue.

    Regards,
    Michael