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/CC3220SF: CC3220: Linker Error with Simplelink library in CCS8.3

Part Number: CC3220SF

Tool/software: Code Composer Studio

I keep getting this error when I compile my NoRTOS project in CCS8.3

undefined                                                                  first referenced 

symbol                                                                      in file
---------                                                                      ----------------
SimpleLinkFatalErrorEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkGeneralEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkHttpServerEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkNetAppEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkNetAppRequestEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkNetAppRequestMemFreeEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkSockEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkSocketTriggerEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>
SimpleLinkWlanEventHandler C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi/ccs/nortos/simplelink.a<eventreg.obj>

error #10234-D: unresolved symbols remain

My linker options are as follows

-mv7M4 --code_state=16 --float_support=vfplib -me -Ooff --fp_mode=strict --define=NORTOS_SUPPORT --define=CC32XX -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"STARPORTS_App2.map" -i"C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source" -i"C:/ti/simplelink_cc32xx_sdk_3_10_00_04/source/ti/drivers/net/wifi" -i"C:/ti/simplelink_cc32xx_sdk_3_10_00_04/kernel/nortos" -i"D:/apps/ti/ccsv8/tools/compiler/ti-cgt-arm_18.12.1.LTS/lib" --diag_suppress=10063 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="STARPORTS_App2_linkInfo.xml" --entry_point=resetISR --rom_model

The same options in other project within the same workspace compiles perfectly.

Thanks in advance

Andoni

  • Hi Andoni,

    Those linker errors have to do with your compiled code not containing the SimpleLink event handlers. Those event handlers are declared and used within the host driver library (simplelink.a), but are up to your application to implement. If you look at an example noRTOS project from the SDK such as the trigger_mode demo, you'll see that all of those callback handler functions are implemented within the application code.

    Do you have those event handlers implemented in your code? If not, I suggest you look at the trigger_mode.c file from that trigger_mode demo as a guide for what to implement. While many of the event handlers have complicated functionality, if a particular handler is not needed by your application then you can simply define it as an empty function like how SimpleLinkNetAppRequestEventHandler is blank in that example.

    Regards,

    Michael