static const pointerType_t* pointerTypeValue;

extern pointerType_t* externPointerTypeFunction(void);

static void getMessageFunction(tU08 timeTick){
	MessageInfo msg;
	tS08 tick= (tS08)timeTick;

	while(tick >= 0){
		tick = tick-4;
		if(tick==0){
			msg = (*pointerTypeValue->message)(); // signal error occurred
			break;
		}
	}
}

When accessing a static const pointer variable, a signal error may occur if the static const pointer variable is not initialized.
In this case, open the test editor of the function in Controller Tester, find the uninitialized static const pointer variable in the test structure tree, and designate the data generation method as [user code].

After initializing a new object of the same type in the user code editor, make the static const variable declared in the code point to it.
Below is an example of the user code for the code above.

pointerType_t temp1 = {0x0,0x0,externPointerTypeFunction, };
pointerType_t* temp2 = &temp1;
pointerTypeValue = temp2;

You can solve the signal error by saving the test editor and re-running the test.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.