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.

MessageQ over SRIO and shared memory

Hi All,

             I want to use MessageQ over SRIO for chip to chip communication and shared memory for Core to Core communication , how can I do?

            I want to refer to  the method below post to create transport based on shared memory. but I don't know how to config the parmeters.

            TransportShm_create(remoteProcId, &transportShmParams, &eb);

           http://e2e.ti.com/support/embedded/tirtos/f/355/p/187454/675085.aspx#675085

Thanks

Nie

  • Yanghong,

    The thread you referred to for setting up SRIO and QMSS transports for messageQ is a good start point. To setup SRIO and shared memory transports for the messageQ is very similar to what has been noted in that thread.

    unsigned short baseId = MultiProc_getBaseIdOfCluster();
    unsigned short clusterSize = MultiProc_getNumProcsInCluster();

    for (i = baseId; i < (baseId+clusterSize); i++) {
    TransportShmNotify_Params transportShmNotifyParams;
    Error_init(&eb);
    TransportShmNotify_Params_init(&transportShmNotifyParams);
    if(TransportSrioSetup_isRegistered(i))
    TransportSrioSetup_detach(i);
    TransportShmNotify_create(i, &transportShmNotifyParams, &eb);
    }

    After you have shared region set up properly, refer to 'SYS/BIOS Inter-Processor Communication (IPC) and I/O User’s Guide' section 3.8 SharedRegion Module, you only need to pass a TransportShmNotify_Params structure to TransportShmNotify_Params_init() as shown above.

    Regards,
    Garrett