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/CC3235SF: How to implementing WIFI from scratch in simplelink project.

Part Number: CC3235SF


Tool/software: Code Composer Studio

I have an existing project that communicates over cellular in our design and I would now also like to add WIFI support.  The application is using NORTOS.

I have referenced the network terminal project to learn about implementing WIFI.

When I add the simplelink.h and simplelink.a to the project and try to add the first WIFI call.

int32_t ret = 0;
// Set wifi chip to standard mode to connect to an access point
ret = sl_WlanSetMode(ROLE_STA);

I get the following unresolved symbols when I try to compile.

unresolved symbol MutexP_Params_init, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>
unresolved symbol MutexP_unlock, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>
unresolved symbol SimpleLinkFatalErrorEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkGeneralEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkHttpServerEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkNetAppEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkNetAppRequestEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkNetAppRequestMemFreeEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkSocketTriggerEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkSockEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
unresolved symbol SimpleLinkWlanEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>

  • Hi Keith,

    The event handlers are used to handle asynchronous events from the network processor. You need those defined in your application code. You can find an example of this at the top of network_terminal.c, or in a helper file like network_if.c in the mqtt_client SDK example.

    The SimpleLink Wi-Fi and TI Drivers CC32xx libraries also make use of a no-RTOS "kernel" library. You need to include that in your project properties: kernel/nortos/lib/nortos_cc32xx.aem4. You can find more details in the SimpleLink MCU SDK User's Guide in the SDK.

    I also suggest checking out a no-RTOS example in the SDK: examples/nortos/<LaunchPad>/demos

    Best regards,

    Sarah

  • Sara,

    Thank you,  I was able to resolve the missing event handlers however the mutex functions are still an issue.

    There is no reference to them in the nortos example for power_measurement and I have used the same includes and references.

    Any idea what could be causing the mutex function errors?

  • New error list is

    #10010 errors encountered during linking; "bg96_azure_demo.out" not built
    <a href="file:/C:/ti/ccs1010/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain
    gmake: *** [all] Error 2
    gmake[1]: *** [bg96_azure_demo.out] Error 1
    unresolved symbol MutexP_create, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>
    unresolved symbol MutexP_delete, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>
    unresolved symbol MutexP_lock, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>
    unresolved symbol MutexP_Params_init, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>
    unresolved symbol MutexP_unlock, first referenced in C:/ti/simplelink_cc32xx_sdk_4_20_00_07/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<cc_pal.obj>

  • I was able to resolve these errors by removing the simplelink.a reference, cleaning the project, recompiling the project to fail, and then re adding the simplelink.a reference.