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.

TMS320C6657: [TMS320C6657] how to configure cfg file to enable inter-core communication between 2 cores using shared region and message Q

Part Number: TMS320C6657

Hi.

as the title said, I'd like to know how to configure both cfg file to make share region and message Q available.

and my plan is to get two cores share data vwith message Q via shared memory.

Could you give me any example that I can adjust my application?

especially I have been looking up the configuration example of shared region. however I am quite confused same configuration should be included in both cfg file of two cores.

for example, I am not sure that I have to include the below configuration in each cfg file

sharedRegion.setEntryMeta(0,{

...

..})

Please show me the best practice for enabling the modules. I need your help so much.

Regards,

ysshim

  • Dear Customer,

    By any chance, have you practiced the example, that I have answered to your previous e2e query below?? Please practice that example. Because, that example has the configuration file which enables the shared memory region and the message Q.

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1057109/tms320c6657-tms320c6657

    In the IPC-SRC example, you will find the configuration file, located at C:\ti\pdk_c665x_2_0_16\packages\ti\transport\ipc\c66\srio\example\c6657\c66\bios\bench_srio.cfg

    In this cfg file, you can observe the initialization of sharedmemory and the message Q.

    IPC_SRIO - This is the " Example application that uses the SRIO IPC transport to send* MessageQ messages between two DSP cores. "

    Regards

    Shankari G

  • Dear, Shankari G

    what I am curious about is the both cfg file of two cores use the same 'bench_srio.cfg' ?

    I am guessing configuring cfg file would be different based on which core.

    I understand there are tons of example and materials talking about IPC module usage

    but it is quite hard for me as a beginner to find the correct examples that meet my need and how to run those.

    I am still working on it following the instructions and examples described in this document ''SYS/BIOS IPC 1.25" and studying the example you showed me.

    but I am facing unexpected issue such as getting stuck into 'IPC_start' function after I include Multiproc module initialization in cfg files. 

    and I still don't know why.

    Thank you so much for your sincere help. I want to solve it for my project team.

    Regards

    ysshim

  • Dear, Shankari G

    when I run the SRIO example.

    message on my console window is different from a footage you showed me before.

    core 0 and core 1 MessageQ_create failed.

    what happen?

    and what i notice is that when 'IPC_Start' function run on both cores only with ipc and sharedregion configuration on cfg file.

    I got a 'success' message from 'IPC_Start' function on both core. however when I add Multiproc configuration on both cfg files 

    codes are stuck into IPC_start function.

    i just copied Multiproc configuration from SRIO example to my applications.

    I don't know why...

    Regards

    ysshim

  • Dear Customer,

    Please post your error messages and the screenshot of CCS. Let us solve them.

    It worked for me. So it should directly work for you too.

    Regards

    Shankari G

  • Dear Shankari G 

    I have created new projects for simple test on IPC configuration.

    the issue I have had on Maltiproc doesn't happen with new projec, which makes me examine my previous application.

    the test of running the SRIO example failed yesterday was carried out with a hardware module that my team developed. 

    so I changed it to 6678 EVM and I tried the example again. and I verified it worked fine as you showed me before.

    It seems to be ok with me to go next step.

    you are the best.

    Regards,

    ysshim

  • Dear ysshim,

    That's a great news. You made it man!.

    By the way, you are best too!.

    As it now works for you, with your permission,  shall I close this thread ?

    Regards

    Shankari G

  • Yeah good to close 

    Regards,

    ysshim