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.

LAUNCHXL-CC3235SF: Build failure unresolved symbol error

Part Number: LAUNCHXL-CC3235SF


Hi,

I have been using LAUNCHXL-CC3235SF for a simple communication over wifi (small project in work).

I am facing certain errors while building it.

#include <stdint.h>
#include <stdbool.h>
#include <hw_types.h>
#include <rom_map.h>
#include <pin.h>
#include <prcm.h>
#include <sl_socket.h>
#include <ti\drivers\net\wifi\simplelink.h>
#include <slnetsock.h>

/**
* main.c
*/
#define SL_SEC_SOCKET_SECURE_SSL 1
int main(void)
{

SlNetSock_AddrIn_t serverAddr;
int16_t serverSocket;
int16_t status;

// Initialize Wi-Fi and connect to network

// Create socket
serverSocket = sl_Socket(SL_AF_INET, SL_SOCK_STREAM, SL_SEC_SOCKET_SECURE_SSL);
// if (serverSocket < 0) {
// // Handle error
// }

// _i16 Status;
// _i16 Sd;
// SlSockAddrIn_t Addr;
// _i8 SendBuf[] = "Hello World !!!";
// _i8 RecvBuf[1460];
// Addr.sin_family = SL_AF_INET;
// Addr.sin_port = sl_Htons(5001);
// Addr.sin_addr.s_addr = sl_Htonl(SL_IPV4_VAL(192,168,1,31));
// Sd = sl_Socket(SL_AF_INET, SL_SOCK_STREAM, 0);
}

Erorrs:

unresolved symbol clock_gettime, first referenced in C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/drivers/net/wifi/ticlang/rtos/simplelink.a<cc_pal.obj>

unresolved symbol ClockP_getSystemTickPeriod, first referenced in C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/drivers/net/wifi/ticlang/rtos/simplelink.a<sl_socket.obj>

..

35 error of that kind.

Can you help ?

Thank you.

P.S

demos from simplelink SDK does not work also.

  • Which example doesn't work? are you using CCS?

    Basically you are missing some libraries.

    In the examples, the libraries list is generated during the project build according to the syscfg configuration (in the examples you can find the generated list in <workspace-project>/Debug/syscfg/ti_utils_build_linker.cmd.genlibs). 

    You can also add the libraries manually in Project Properties -> ARM Linker -> File Search Path.

  • Hi Kobi.

    the examples are just a side note.

    In the code above i added simplelink.a to linker path - doesnt solve the problem.

    Relevant inlucde files (from TI forum and examples) are added to the project.

    Am i missing something ? I'm only trying to create new socket object.

  • Hi,

    No. This is wrong approach. Do not start project from scratch, just re-use one of SDK examples.

    Jan

  • simplelink.a is just the CC32xx host driver library. In addition, you'll need os library and posix implementation library, drivers library (device drivers + generic TI drivers), networking and utilities libraries as used by the the application.

    Using an SDK example, like Jan mentioned, will simplify this for you and is definitely the recommended way.