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.

conditional operator "if" or Debugger CCS4 problem ...

Hi.

Perhaps it will seem ridiculous, but I have a problem with subj.

I have a problem with condition operator "if" in C2000 version of CCS4 ( Version: 4.2.3.00004 ) :

It seems like a problem of debugger.

This is the code :



#include "DSP28x_Project.h"
#include "DSP280x_Device.h"

#define Size 100

typedef union{

volatile Uint16 Half_Word[Size];
volatile Uint32 Full_Word[Size / 2 ];

}t_LBD;

t_LBD MASS;

int X = 2;


void main()
{

MASS.Half_Word[0] = 0;
MASS.Half_Word[1] = 0;

while(1)
{
if( X == 1 )
{
MASS.Half_Word[0] = 1;
}
else
{
MASS.Half_Word[1] = 10;
}
}

}


"Step marker" does steps in a THRUE and in a FALSE branches of operator "if" simultaneously.

Can you solve this problem?

It actually prevents normal debug.
 

Thank you.