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.

CCS/CC1352R: CSC Error

Part Number: CC1352R
Other Parts Discussed in Thread: CC3120MOD, CC3120, UNIFLASH

Tool/software: Code Composer Studio

Hello,

The board is custom with CC1352R.

I am trying to connect with CC3120MOD.

Invoking sl_Start I have an error and warning:

 

  • Hi,

    Please start with the c26xx examples in the wifi plugin.

    Br,

    Kobi

  • Hi,

    the example for CC26X2R1_LAUNCHXL is related to CC32xx.

    I  use CC3120MOD  connected with SPI to CC1352R.

    The problem is wit CC3120 driver porting, when using the functions from driver. Foe example the furst function which should be used sl_Start( ; ; ; ).

    The code is:

    #include <ti/drivers/net/wifi/porting/user.h>
    #include <ti/drivers/net/wifi/source/objInclusion.h>

    #include <ti/drivers/net/wifi/simplelink.h>
    #include <ti/drivers/net/wifi/device.h>

    _i16 Role;

    Role = sl_Start(NULL, NULL, NULL);

    Error: 

    Description Resource Path Location Type
    #148 declaration is incompatible with "signed short Role" (declared at line 43) WiFi_Module.c /manDown_CC1352R1_nortos_ccs line 45 C/C++ Problem

    Regards,

    Ilian

  • no, the example in the plugin are for CC3120 (exactly your use case).

    I'm not sure what are you trying to do in your driver, but the plugin should be your reference.

    Br,

    Kobi

  • Hi,

    I am trying to import the CC3120 driver to CC1352R custom project.

    I import the driver, but it seems there is some problem with a linker.

    I can not find in Examples directory in  WiFi plugin, project which can be used l like a reference.

    Ilian

  • Hi,

    you mean this example ?

    C:\ti\simplelink_sdk_wifi_plugin_2_40_00_22\examples\nortos\CC26X2R1_LAUNCHXL

    Ilian

  • It seems my problem  is in linker.

    I port the cc3120 driver to my project.

    I use my own file for WiFi functions (code below)

    When I call a function wifiStart(void) from my main  file the error 10234 exist.

    The main code is running on cc1352R.

    The code is below:

    /***** Includes *****/
    #include <WiFi_Module.h>


    #include <ti/drivers/net/wifi/porting/user.h>
    //#include <ti/drivers/net/wifi/source/objInclusion.h>

    #include <ti/drivers/net/wifi/simplelink.h>
    //#include <ti/drivers/net/wifi/device.h>
    //#include <ti/drivers/net/wifi/errors.h>
    //#include <ti/drivers/net/wifi/eventreg.h>
    //#include <ti/drivers/net/wifi/fs.h>
    //#include <ti/drivers/net/wifi/netapp.h>
    //#include <ti/drivers/net/wifi/netcfg.h>
    //#include <ti/drivers/net/wifi/netutil.h>
    //#include <ti/drivers/net/wifi/sl_socket.h>
    //#include <ti/drivers/net/wifi/slnetifwifi.h>
    //#include <ti/drivers/net/wifi/trace.h>
    //#include <ti/drivers/net/wifi/wlan.h>
    //#include <ti/drivers/net/wifi/wlanconfig.h>

    void wifiStart(void)
    {
    _i16 Role;

    Role = sl_Start(NULL, NULL, NULL);

    if (Role < 0)
    {
    while(1);
    }
    }

    When I call the function wifiStart(void), from the main file, I have an error:

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "........." not built

  • you should link your project with the simplelink.a (cc3120 driver library). 

  • Thanks, but unfortunately this do not solve the problem

  • Then your library wasn't built correctly. sl_Start() is a function within the library.

    Please try the example in the plugin which uses pre-built driver binary (you can use the binary from the plugin, under source\ti\drivers\net\wifi\ccs\rtos\simplelink_cc26x2\ or rebuild it if you need to change any configuration). 

    Br,

    Kobi

  • I add path:

    C:\ti\simplelink_sdk_wifi_plugin_2_40_00_22\source\ti\drivers\net\wifi\ccs\nortos\simplelink - in linker "File search path"

    and

    simplelink.a - in library section.

    The errors are a lot now.

  • The problem is in the library or in adding it.

    I can not call any sl_ function

  • the some.

    I can not call any sl_ function.

  • Hi,

    when add simplelink.a in linker 

    All this errors exist:

    Description Resource Path Location Type
    #10010 null: errors encountered during linking; "manDown_CC1352R1_nortos_ccs.out" not built manDown_CC1352R1_nortos_ccs C/C++ Problem
    <a href="processors.wiki.ti.com/.../10234"> null: unresolved symbols remain manDown_CC1352R1_nortos_ccs C/C++ Problem
    gmake: *** [all] Error 2 manDown_CC1352R1_nortos_ccs C/C++ Problem
    gmake[1]: *** [manDown_CC1352R1_nortos_ccs.out] Error 1 manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkFatalErrorEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkGeneralEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkHttpServerEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkNetAppEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkNetAppRequestEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkNetAppRequestMemFreeEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkSocketTriggerEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkSockEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol SimpleLinkWlanEventHandler, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<eventreg.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol WiFi_config, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<cc_pal.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    unresolved symbol WiFi_count, first referenced in C:/ti/simplelink_sdk_wifi_plugin_2_40_00_22/source/ti/drivers/net/wifi/ccs/nortos/simplelink/simplelink.a<cc_pal.obj> manDown_CC1352R1_nortos_ccs C/C++ Problem
    This project was created using a version of compiler that is not currently installed - 18.1.6.LTS [ARM]. Another version of the compiler will be used during build - 18.12.2.LTS. See 'Help > Install New Software' and select 'Code Generation Tools Updates' to check if this compiler is available through a CCS update. Visit <a href="liveaction:OpenAppCenter">CCS App Center</a> to get the latest compiler support. Or <a href="software-dl.ti.com/.../a> and install the compiler, then register it with CCS through 'Preferences > CCS > Build > Compilers'. manDown_CC1352R1_nortos_ccs properties Problem

  • This one makes sense.

    There are couple of SL event handlers that you need to have in your application. 

    I'm not sure what are the missing WiFi_config and WiFi_count but all needs to be resolved if you will use the example application.

    Please check the reference example. It will solve many of the issues you are facing which are very basic.

    It is also recommended that you will be familiar with programmer guide (http://www.ti.com/lit/ug/swru455j/swru455j.pdf) especially in regards to the introduction, the device (chapter 3) and the porting guide (chapter 19).

    Br,

    Kobi 

  • Hi,

    where this SL event handlers should be located in application?

    I know and read this documents.

    Thanks!

  • It is not important where but the function should be there.

    Please refer to the example.

  • Hi,

    thank you for your support.

    One question - in example folder in wifi plug in, in nortos folder for CC26X2R1_LAUNCHXL. there is no project. only .project and makefile.

    Can you advise please, how to inport nortos example in CCS.

    Thanks,

    Ilian

  • There is no NORTOS example for CC26X2R1. The nortos example for MSP432 would be the closest reference.

    Br,

    Kobi 

  • Hi,

    one more question.

    The CC3120MOD should be programmed with image via for example with UNIFLASH. (according to the documentation)

    After production (pcb assembly) the CC3120MOD is blank?

    I am not program the module and when try to send sl_Start, the program stuck.

    The problem probably is that the module is not programmed?

    Regards,

    Ilian

  • Maybe. The Service Pack needs to installed on the flash.

    Br,

    Kobi