Hi All,
Using CCSV5, MCSDK [bios_mcsdk_02_00_05_17_setupwin32],i started with a project of sending a message from CORE0 to CORE1. Aim of the project is achieved [MessageQ_Put and MessageQ_Get is successfull] and in the meanwhile process, i found few things which i am not able to understand
I am creating a queue at CORE1 and opening it in CORE0 [to do MessageQ_put]. So queue is local to CORE1 and remote to CORE0.
My code is working only if i have created a local queue at CORE0 also [Though i am not using this CORE0 local queue].
=================================================
messageQ = MessageQ_create(localqueue,NULL);
status1 = MessageQ_open(remotequeue,&remoteQueueId);
HeapBufMP_Params_init(&HeapBufparams);
MyMsg = (MessageQMsg *)MessageQ_alloc(HEAPID,sizeof(MyMsg));
=================================================
if you look at above steps [CORE0 Code], MessageQ_open is on remote queue whereas i am also creating a localqueue [if i comment the local MessageQ_create line, i see the simulation crashing].My question is "IS IT REQUIRED/NECESSARY THAT FOR A SHARED REGION heapmembuf based IPC mechanism to have both messageQ's created at both cores [if i have only one queue created at core1 and opened by core0, will it not work..is it mandatory that i have to define Q's at both cores]".
Thanks
R C Reddy