Okay, but the Exception 25348 backtrace in the logger points to that code line?
If yes, what’s about the string? As I remember, in C strings have to be double-quoted → does “Mod1Test” instead of ‘Mod1Test’ work?
Went ahead and tested this on my side, and Alex is right, in which you’re currently using the incorrect string callout.
Incorrect:
MpAlarmXSet(&gAlarmXCore,’Mod1Test’);
Correct:
MpAlarmXSet(&gAlarmXCore,”Mod1Test”);
This should allow you to compile and trigger the alarm.
Also, If you look at the example from the help explorer link you posted, it also shows that you would use “ “ when using C. using ‘ ‘ would be for when you’re coding in ST.