Hi,
I want to set MULTI_STACK to TRUE so that I can use EVENT synchronization primitives(WaitEvent() and SetEvent()) in my application but I get the following error error whenever I do so:
Hi Nelson,
I think your fault is that you want to use EVENT synchronization primitives (WaitEvent() and SetEvent()) with FP kernel that NOT SUPPORT them.
If you want to use EVENT synchronization primitives, then you have to choose as KERNEL_TYPE one of OSEK/VDX Conformance Class (BCC1, BCC2, ECC1, ECC2).
Bye.
P.S.: Soon I'll write a simple demo to illustrate how to use an OSEK/VDX Conformance Class in Multi Stack Configuration using Event Synchronization Primitives. Stay tuned!!!
Hi all,
@paolo.gai. I am using microchip's explore16 board with pic32mx795f512l. I'll send the email with my oil file. Thanks
@outlawch. I think if you use KERNEL_TYPE=FP and set MULTI_STACK=TRUE, the conformance class ECC2(which should support blocking primitives) is automatically used?
Hi Nelson,
in order to use OSEK/VDX ECC2 Comformance Class in ERIKA Enterprese you have to specify KERNEL_TYPE=ECC2 with MULTI_STACK=TRUE in your OIL file.
ERROR > Some errors : Property not found:
counter_maxallowed
{counter_type=SOFTWARE, counter_id=0, counter_cpu_mapped_id=default_cpu}
Check and fill folder test/Debug
test/Debug/make_launcher.bat OK
Hi Nelson,
now your fault is that you have not correctly defined the COUNTER object.
The OIL Object COUNTER has some mandatory ATTRUBUTES:
COUNTER myCounter {
MINCYCLE = 1; /* LEAVE THIS VALUE TO 1 */
MAXALLOWEDVALUE = 65535 ; /* Change this to choose the counter resolution. */
TICKSPERBASE = 1; /* LEAVE THIS VALUE TO 1 */
};
You have to specify these attibutes to let RT-Druid to generate the correct configuration.
Bye.
P.S.: Note that in your OIL file you have specified COUNTER=myCounter; two (2) times!!!