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.

CC3100MOD: sl_DevGet does not get the info. correctly after the servciepack is updated.

Part Number: CC3100MOD

Hi Experts,

After they updated the servicepack to 1.0.1.14-2.12.2.8, sl_DevGet can not get the version info. correctly.
The version info. is all zero.
The return value is 0x1111.

Could you please let us know considerable root cause?

Thank you for your help.
Best regards,
Hitoshi

  • Hi Hitoshi,

    The customer needs to print the servicepack version as a string, and check if there is an error code returned. Please try the code snippet provided:

    long lRetVal = -1;
    SlVersionFull   ver = {0};
    unsigned char ucConfigOpt = 0;
    unsigned char ucConfigLen = 0;
    ucConfigOpt = SL_DEVICE_GENERAL_VERSION;
    ucConfigLen = sizeof(ver);
    lRetVal = sl_DevGet(SL_DEVICE_GENERAL_CONFIGURATION, &ucConfigOpt, 
                                    &ucConfigLen, (unsigned char *)(&ver));
    
    if (lRetVal < 0)
    {
        printf("sl_DevGet error: %d/n/r", lRetVal);
    }
        
    printf("Host Driver Version: %s\n\r",SL_DRIVER_VERSION);
    printf("Build Version %d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d\n\r",
        ver.NwpVersion[0],ver.NwpVersion[1],ver.NwpVersion[2],ver.NwpVersion[3],
        ver.ChipFwAndPhyVersion.FwVersion[0],ver.ChipFwAndPhyVersion.FwVersion[1],
        ver.ChipFwAndPhyVersion.FwVersion[2],ver.ChipFwAndPhyVersion.FwVersion[3],
        ver.ChipFwAndPhyVersion.PhyVersion[0],ver.ChipFwAndPhyVersion.PhyVersion[1],
        ver.ChipFwAndPhyVersion.PhyVersion[2],ver.ChipFwAndPhyVersion.PhyVersion[3]);

    Best regards,

    Sarah

  • Hi Hitoshi,

    Was your customer able to try the code?

    Best regards,

    Sarah

  • Hi Sarah,

    It worked.
    Thank you so much for help.

    Best regards,
    Hitoshi