I'm using a global resource in two tasks, assigned to two different cores (TriCore Tc27x). In the OIL file the OS object has the following attributes (among others):
Code: Select all
STATUS = EXTENDED;
USERESSCHEDULER = TRUE;
KERNEL_TYPE = ECC1;
REMOTENOTIFICATION = USE_RPC;
SPINLOCKS = QUEUED; //global mutexes do not work with this option enabled for some reasons
Now generating the ErikaOS config files with RT_Druid ends up with the following error: "com.eu.evidence.rtdruid.internal.modules.oil.exceptions.OilCodeWriterException: Global resources are not allowed"
The oscfg make works fine with the attribute "SPINLOCKS = QUEUED" disabled, i.e. using the trivial implementation.
Is this a bug in ErikaOS or do I do something wrong using the resource as a global mutex.
regards,
a.wall