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.

Socket programming on F2812

Other Parts Discussed in Thread: TMS320F2812

hello team,

I am trying to communicate with TMS320F2812 with PC through ethernet.CCS version is v6.1 and I am working on windows 7 OS.I had tried everything about socket programming related information available on internet.I am facing the situation where the symbols of functions of socket programming i.e. connect,send,closesocket,receive etc. can't generated in .obj file.so,it can't generate .out file and I am not able to built my file successfully.Please give some suggestions that how would I solve this errors.

Regards,

Monali

  • Hello,
    You have not provided much details about your build errors so it is hard to give good advice. But it sounds like you are getting unresolved symbol linker errors. In any case, I recommend you read the below article on the more commonly encountered build errors. It has suggestions on how to resolved them:
    processors.wiki.ti.com/.../Build_Errors_in_CCS

    Hope this helps
    ki
  • Rahul Ahuja11 said:
    I am trying to communicate with TMS320F2812 with PC through ethernet.

    The TMS320F2812 doesn't have a built-in Ethernet interface. What external device are you using to get an Ethernet interface for the TMS320F2812?

  • hello,

    I am using ENC28J60 device for TMS320F2812 and ethernet connection.

  • hello,

    #10010 errors encountered during linking; "ccs.out" not built
    #10056 symbol "_IID_IByteBuffer" redefined: first defined in "./SCRDDT_I.obj"; redefined in "./SSPSDL_I.obj"
    #10056 symbol "_IID_ISCardCmd" redefined: first defined in "./SCRDDT_I.obj"; redefined in "./SSPSDL_I.obj"
    #10056 symbol "_IID_ISCardTypeConv" redefined: first defined in "./SCRDDT_I.obj"; redefined in "./SSPSDL_I.obj"
    <a href="file:/c:/ti/ccsv6/tools/compiler/dmed/HTML/10234.html">
    #10234-D</a> unresolved symbols remain
    unresolved symbol _closesocket, first referenced in ./main.obj
    unresolved symbol _connect, first referenced in ./main.obj
    unresolved symbol _freeaddrinfo, first referenced in ./main.obj
    unresolved symbol _getaddrinfo, first referenced in ./main.obj
    unresolved symbol _MAKEWORD, first referenced in ./main.obj
    unresolved symbol _recv, first referenced in ./main.obj
    unresolved symbol _send, first referenced in ./main.obj
    unresolved symbol _socket, first referenced in ./main.obj
    unresolved symbol _WSACleanup, first referenced in ./main.obj
    unresolved symbol _WSAGetLastError, first referenced in ./main.obj
    unresolved symbol _WSAStartup, first referenced in ./main.obj
    unresolved symbol _ZeroMemory, first referenced in ./main.obj

    These are the errors occurred while building process.I had included "windows.h", "winsock.h", "ws2tcpip.h" header files available on internet and "ws2_32.dll", "mswsock.dll", "advapi32.lib" libraries.
    Hope now you are more clear about my problem.Give some suggestions.

    Monali
  • hello,
    I had tried everything which is given in the link provided by you.But the same errors still occurs.Errors are mentioned in my previous reply.

    Monali
  • Rahul Ahuja11 said:
    I had included "windows.h", "winsock.h", "ws2tcpip.h" header files available on internet and "ws2_32.dll", "mswsock.dll", "advapi32.lib" libraries.

    Those files are for socket programming on a Windows PC, and therefore won't work on a C2000 based TMS320F2812 embedded MCU.

    From a quick look, TI don't appear to have ported a network stack to a C2000 CPU core.

    [In TI-RTOS for C2000 there are Ethernet examples for the 28M35x and 28M36x Concerto devices, but the network stack only runs on the Cortex-M3 CPU and not the C2000 CPU]

    There is an old thread TCP/IP stack on C2000? which contains a link to a project where someone ported a TCP/IP Stack to a TMS320F2812 device using a CS8900A Ethernet controller. That project may be a starting point for you, but you will have to create or port a driver for the ENC28J60 Ethernet controller.

  • Yes, as Chester said, it looks like you are trying to use some example meant for a Windows PC.
  • Thank you all for help.!
    but the problem is that, I have some code which is properly work with TMS320F2812 and it is for the yarn clearer machine. And I am doing a project to use that data and transmit that data to PC through Ethernet.
    So what's the other option for doing this project?? Give some suggestions.

    Monali
  • I suggest posting in the C2000 forums. You will have a better chance of finding people who are using a similar device who may have tried what you are trying.

    Thanks
    ki