This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,..
I was getting this error: cannot load from non primitive location, when i was declaring the given structure and initializing in the task void hmi(),... when i debugg this i found that all vaiables are initialized except that function pointer i.e. (*command)(short). and the error is showing "Cannot load from non primitive location".
typedef struct
{
char menuDescription[20];
short menuItemNumber;
short nextItem;
short previousItem;
short upMenu;
short downMenu;
_Bool (*command)(short);
}menu;