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.

CC3220SF-LAUNCHXL: Reading service pack version from NWP

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: UNIFLASH

Hi,

I have installed service pack using Over the Air(OTA) approach. I want to make sure that new service pack is installed successfully. 

Is there any API i can use in application software to get to know the current running service pack version?

  • Hi,

    You can use this one:

    SlDeviceVersion_t ver;
    pConfigLen = sizeof(ver);
    pConfigOpt = SL_DEVICE_GENERAL_VERSION;
    sl_DeviceGet(SL_DEVICE_GENERAL,&pConfigOpt,&pConfigLen,(_u8 *)(&ver));
    printf("CHIP %d\nMAC 31.%d.%d.%d.%d\nPHY %d.%d.%d.%d\nNWP %d.%d.%d.%d\nROM %d\nHOST %d.%d.%d.%d\n",
                     ver.ChipId,
                     ver.FwVersion[0],ver.FwVersion[1],
                     ver.FwVersion[2],ver.FwVersion[3],
                     ver.PhyVersion[0],ver.PhyVersion[1],
                     ver.PhyVersion[2],ver.PhyVersion[3],
                     ver.NwpVersion[0],ver.NwpVersion[1],ver.NwpVersion[2],ver.NwpVersion[3],
                     ver.RomVersion,
                     SL_MAJOR_VERSION_NUM,SL_MINOR_VERSION_NUM,SL_VERSION_NUM,SL_SUB_VERSION_NUM);

    Jan

  • We have implemented this function in our application software. we observe that this is changing only when we change SDK version from 2.10 to 2.20

    here is the version information printed for SDK 2.10 (simplelink_cc32xx_sdk_2_10_00_04)

    CHIP 536871728
    MAC 31.255.255.255.255
    PHY 255.255.255.255
    NWP 255.255.255.255
    ROM 65535
    HOST 2.0.1.27

    here is the version information printed for SDK 2.20 (simplelink_cc32xx_sdk_2_20_00_10)

    CHIP 536871728
    MAC 31.255.255.255.255
    PHY 255.255.255.255
    NWP 255.255.255.255
    ROM 65535
    HOST 3.0.1.39

    However our requirement to get to know which service pack is flashed.
    from the service pack read me notes (C:\ti\simplelink_cc32xx_sdk_2_20_00_10\tools\cc32xx_tools\servicepack-cc3x20\README.html)
    i see that following version shall printed. Why are we not seeing the same in our console prints.


    Below information copied from release notes.

    sp_3.8.0.3_2.0.0.0_2.2.0.6.bin ServicePack binary for UniFlash
    sp_3.8.0.3_2.0.0.0_2.2.0.6.ucf ServicePack UCF for host driver API
    sp_3.8.0.3_2.0.0.0_2.2.0.6.ucf.signed.bin ServicePack UCF signature

    Version information

    Component Version
    NWP 3.8.0.3
    MAC 2.0.0.0
    PHY 2.2.0.6

    Note: Upon successful ServicePack programming, version can be retrieved using ‘sl_DeviceGet()’ API, with SL_DEVICE_GENERAL_VERSION option.
  • Hi,

    It looks that your SlDeviceVersion_t structure is not initialised. I think it is returned error code from sl_DeviceGet() API. I suppose that you call this API in moment when you not have NWP started.

    Jan