Hi everybody,
I have a problem with GateMP using on C6678...
I have a master program loads on core0 and a slave program loads on core1-7.
I create a GateMP "myGate" on core0 and hope all 8 cores could use it.
The code to create GateMP on core0 looks like:
void tsk_master()
{
GateMP_Params gparams;
GateMP_Handle gateHandle;
IArg key;
GateMP_Params_init(&gparams);
gparams.localProtect = GateMP_LocalProtect_THREAD;
gparams.remoteProtect = GateMP_RemoteProtect_SYSTEM;
gparams.name = "myGate";
gparams.regionId = 0;
/* Create the gate */
gateHandle = GateMP_create(&gparams);
/* Enter the gate */
key = GateMP_enter(gateHandle);
System_printf("GateMP_enter\n");
/* Leave the gate */
GateMP_leave(gateHandle, key);
}
The code to open and use "myGate" on core1-7 looks like:
void tsk_slave()
{
/* Open a gate */
status = GateMP_open("myGate", &gateHandle);
/* Enter the gate */
key = GateMP_enter(gateHandle);
// do something...
/* Leave the gate */
GateMP_leave(gateHandle, key);
/* Close the gate */
GateMP_close(&gateHandle);
}
Here is the problem: when the slave cores run to GateMP_open, they didn't go on...
Could you please help me?
Thank you!
Regards,
Richard