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.

BOOSTXL-CC3135: setting device type crashes CC3135 board

Part Number: BOOSTXL-CC3135
Other Parts Discussed in Thread: CC3135, , UNIFLASH, CC31XXEMUBOOST

When I make a call to sl_WlanSet() to set the device type (for a P2P connection), the call succeeds, but after a restart (sl_Stop(), sl_Start()), the device returns a -4115 error.
At this point, I have to reset the device to factory configurations.    


BTW, This is my chip firmware info:
Chip ID = 31100000
FW ver = 3.1.0.5
NWP ver = 4.1.0.1B
PHY ver = 3.1.0.11
ROM ver = 2222

Here is the code I'm calling:


// setup the CC3135 as a P2P group owner
void P2P_setup_as_GO(void)
{
unsigned char ucP2PParam[4];
char devtype[16];
u8_t policy;
i32_t err;

policy = SL_WLAN_P2P_POLICY(SL_WLAN_P2P_ROLE_GROUP_OWNER,SL_WLAN_P2P_NEG_INITIATOR_RAND_BACKOFF);
err = sl_WlanPolicySet(SL_WLAN_POLICY_P2P,policy,NULL,0);
assert(err==0);


// Set P2P device type
sprintf(devtype,"BLKBOX");
err = sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, SL_WLAN_P2P_OPT_DEV_TYPE, strlen(devtype), &devtype);
assert(err==0);

}

What am I doing wrong?

Thanks!

  • Hi,

    At first step update ServicePack inside BOOSTXL-CC3135 and repeat your attempt.

    Latest ServicePack  you find inside CC32xx SDK (yes it is compatible with CC3135). For programming you can use Uniflash software with CC31XXEMUBOOST or you can program image generated by Uniflash with sl_FsProgram() API from host.

    Jan

  • Thanks Jan.    I do not have a CC31XXEMUBOOST board, and I've never updated the service pack before (sorry - I'm a newbie with the CC3135) - do I simply use sl_FsProgram() to send the contents of the "sp_4.7.0.3_3.1.0.5_3.1.0.26" file(s)?     Which file(s) do I send?
    Thanks again.

  • Hi,

    Please read this thread. It covers many topics in this meaner.

    Jan

  • Thanks that thread helped.  I have loaded the contents of the  service pack .UCF file into my local flash, and I'm now ready to send it to the CC3135.    It seems like one of the thread's poster suggested using the sl_SfOpen/sl_FsWrite()/sl_FsClose() sequence, rather than using sl_FsProgram().   Is that the best way to update the service pack?

    If so, what are the proper creation flags and "MaxSize" to use when opening the file?  Do I set "MaxSize" to the size of the service pack that I'm about to download?  I'm thinking of using these flags, but am not sure:

    h = sl_FsOpen("sys/servicepack.ucf",
                            SL_FS_OVERWRITE | SL_FS_CREATE_SECURE | SL_FS_CREATE_PUBLIC_WRITE |
                            SL_FS_CREATE_FAILSAFE | SL_FS_CREATE_MAX_SIZE( MaxSize ),NULL);

    Sorry for the newbie questions...

  • OK - after a bit more research, I was able to successfully update the service pack to sp_4.7.0.3_3.1.0.5_3.1.0.26.ucf.   

    My chip info is now as follows:

    Chip ID = 31100000
    FW ver = 3.1.0.5
    NWP ver = 4.7.0.3
    PHY ver = 3.1.0.1A
    ROM ver = 2222

    However, the original -4115 error that happens after you set the device type still persists  

    This occurs after I use sl_WlanSet() to set the device type (using code snippet below), and after I restart the device in P2P mode.

    // Set P2P device type
    sprintf(devtype,"BLKBOX");
    err = sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, SL_WLAN_P2P_OPT_DEV_TYPE, strlen(devtype), &devtype);
    assert(err==0); 

    So far, it appears that setting the device type crashes the system, but only after you restart it in P2P mode.

  • Hi,

    Can you try with ServicePack 4.11.0.0? This file you find at the latest C32xx SDK (tools\cc32xx_tools\servicepack-cc3x35). What is your host MCU? If you issue will not be resolved by ServicePack 4.11.0.0 please capture NWP log (please see chapter 20.1 inside swru455). Because I don't have tool for decoding of NWP log, you will need to wait for answer from TI.

    Jan