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: SL_PLATFORM_MULTI_THREADED

Part Number: CC3220SF


SDK: simplelink_cc32xx_sdk_7_10_00_13

ccs version   12.5.0.00007 

ticlang version:  v3.20.LTS

In example project "udpecho_CC3220SF_LAUNCHXL_freertos_ticlang"  why "SL_PLATFORM_MULTI_THREADED" is  not pre-defined?

Anyway we include rtos version of simplelink library "source/ti/drivers/net/wifi/ticlang/rtos/simplelink.a" which is build with  SL_PLATFORM_MULTI_THREADED pre-define.

but project "udpecho_CC3220SF_LAUNCHXL_freertos_ticlang" doesn't have SL_PLATFORM_MULTI_THREADED so include file is looking wrong in simplelink.h : number 817

#ifdef SL_PLATFORM_MULTI_THREADED
    #include "source/spawn.h"
#else
    #include "source/nonos.h"
#endif

should SL_PLATFORM_MULTI_THREADED be pre-defined or not?

  • Hi,

    SL_PLATFORM_MULTI_THREADED is for the host driver, not the application layer.

    SL_PLATFORM_MULTI_THREADED should be predefined in the project settings, not in actual .c/.h files.

    Don't you have SL_PLATFORM_MULTI_THREADED defined in the simplelink library?

    Shlomi

  • yes SL_PLATFORM_MULTI_THREADED is for the host driver,  not the application layer. but I'm including #include <ti/drivers/net/wifi/simplelink.h>

    inside simplelink.h #include <ti/drivers/net/wifi/porting/user.h> is there and inside user.h #include <ti/drivers/net/wifi/porting/cc_pal.h> is included

    In cc_pal.h file (below image)   SL_PLATFORM_MULTI_THREADED not defined because project don't have -D SL_PLATFORM_MULTI_THREADED flag

    because of this  different files are getting included.

    this is just an example, like this many files are wrongly included even though library(simplelink.a) in build with -D SL_PLATFORM_MULTI_THREADED flag

  • Strange, for me simplelink.h shows as if it is defined. Not sure were it takes it from. If you add this SL_PLATFORM_MULTI_THREADED, does it execute as expected?

  • SDK: simplelink_cc32xx_sdk_7_10_00_13

    ccs version   12.5.0.00007 

    ticlang version:  v3.20.LTS

    I'm using above versions of tools, which version of ccs are you using?

    can you send me a screenshot of simplelink.h line  number 817?

    f you add this SL_PLATFORM_MULTI_THREADED, does it execute as expected?

    Yes after adding SL_PLATFORM_MULTI_THREADED it is working as expected.

  • I am using the same SDK.

    CCS version 12.2.0.00009.

    ticlang version: 2.1.2LTS.

  • if I add SL_PLATFORM_MULTI_THREADED to predefined variables in the project is there any problem?

  • I don'r see an issue with setting this define.

    Do you see any misbehaviors when you run the program?