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.

Can't put breakpoint on if statement

Hi,

I'm using CCS6 with the TMS5701227.  In the code below, I can't set a breakpoint on the if statement, CCS moves the breakpoint inside of the if block.  If I put a breakpoint on the line before the if, it gets hit, but when I step through, it jumps to the line after the if block, like it is skipping the if statement all together.

 

   	pTask3RspMbox = OSMboxCreate(0);

   	//Check to see if Mbox did not create.If it did not create successfully, a message is
   	//sent to the fib diagnostic port and if running in debug assert is tripped and breaks code, but does not
   	//print anything to a console window.
	if(pTask3RspMbox == 0)
	{
		diagPrintf("Error: FAILED To Create Task3 Rsp Mailbox\n\r");
		OSTimeDly(10);
		ASSERT(pTask3RspMbox != 0);
	}

	initCAN();