hello,
i'm using HCS12X with Xgate .
first, i use hc12 core for my main program and xgate core for have SCI communication.
for the semaphore, in my main program :
do{XGSEM=0x0101;}while(!XGSEM);
....
XGSEM=0x0100;
and in the Xgate program i use :
while(!_ssem(0)){}
...
_csem(0);
this program work fine
now, i want to add an I2C function in Xgate core, so in my main program i try to use a 2nd semaphore :
do{XGSEM=0x0202;}while(!XGSEM);
....
XGSEM=0x0200;
and in the Xgate program i use :
while(!_ssem(1)){}
...
_csem(1);
this program work fine
i must have a problem, the 2 communication work fine while 5 or 10 minut but stop after this time.
someone can say me if this declaration of semaphore is correct ?
thanks
Stéphane