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.

Undefined SEM?

Guru 15580 points

I am posting a SEM every 200ms from a PRD that my switch monitor TSK pends upon. 

 

//-----------------------------------------------------------------------------

// SWMonitor() 

//

// Called by PRD Obj every 125ms

//-----------------------------------------------------------------------------

void TSK_sw_monitor(void) //called by PRD

{

uint8_t old_SW_status;

while(1){

SEM_pend(&SEM_sw_mon,SYS_FOREVER);

However, I get a compiler error that SEM_sw_mon is undefined. But my SEM_sw_mon is clearly defined in Gconf

What could be causing this compiler error?