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/TMS320C6678: about ndk helloworld_evmc6678l example

Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

I am doing tcp communication under sysbios, the selected routine is mcsdk/example/helloWorld. In this routine, dsp is created as a local server. But I want to make dsp as a client. What should I do?

在这里创建dsp为本地服务器。

  • Hi,

    FIRST I'd like to note that MCSDK is outdated and not supported any more. I'd answer for Processor SDK RTOS, you should have similar example in MCSDK.

    You can refer to Processor SDK RTOS:
    there is a NIMU_emacClientExample_EVMC6678C66BiosExampleProject.
    You can create the example using the following command:
    ./pdkProjectCreate.sh C6678 all little emac all dsp

    This will create all EMAC examples in ~/ti/pdk_k2hk_4_0_9/packages/MyExampleProjects folder.

    Best Regards,
    Yordan
  • Hi,Yordan

    I also used the routine you said. The routine you said is the same as the one I said. It's all about dsp as a server. I want to make dsp a client. Proactively connect to the PC and send data to the PC, and I actually did it. And can successfully send data to dsp, but the problem is that the socket I created is a PC as a client, so I can't receive the data sent by the PC to dsp. How can I solve this?

  • To correct it, I created the socket as a PC and successfully sent data to the PC. However, I can't receive the packet sent by the PC with the socket I created.
  • Hi,Yordan

    I also used the routine you said. The routine you said is the same as the one I said. It's all about dsp as a server. I want to make dsp a client. I created the socket as a PC and successfully sent data to the PC. However, I can't receive the packet sent by the PC with the socket I created.
  • Hi,

    You may check this E2E: e2e.ti.com/.../683667. Don't go through the length discussions, just look at the 05-03-2018 2:56 PM update. There is an attachment server_client_test.zip. This is for K2H, but TCP client/server code is the same for C6678.

    Regards, Eric