I want to create two program run on c6678,one runs on core 0 linux ,the other runs on core 1-7 sys/bios.
These two program communicate with each other by syslink.
but the syslink on linux-c6x has a little different,is there any demo about this framework?
I write a little program on linux side to test my thought,
int
main (int argc, char ** argv)
{
Int status = 0;
SysLink_setup();
ProcMgr_Handle handle = NULL;
ProcMgr_AttachParams attachParams;
status = ProcMgr_open (&handle, 1);//core 1
if(status>=0){
ProcMgr_getAttachParams (NULL, &attachParams);
status = ProcMgr_attach (handle, &attachParams);
if (status < 0) {
Osal_printf ("ProcMgr_attach failed [0x%x]\n", status);
}
ProcMgr_close(&handle);
}
SysLink_destroy();
}
then I always get "ProcMgr_attach failed",btw,when I use ProcMgr_open() , I get a lot assertion failed messages:
Assertion at Line no: 2871 in /home/ubuntu/build-set/c66le/linux-c6x-2.0.0.63/Build/syslink_evmc6678.el/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/procMgr/hlos/knl/ProcMgr.c: (handle != NULL) : failed
Assertion at Line no: 883 in /home/liuc/work/linux-c6x-2.0.0.63/linux-c6x-2.0.0.63-src/projects/syslink/ti/syslink/procMgr/hlos/usr/ProcMgr.c: ((handlePtr != NULL) && (*handlePtr != NULL)) : failed
linux-c6x version: 2.0.0.63 release
syslink version: 02.00.00.68_beta1 c6x