Page 1 of 1

mi_cmd_var_create: unable to create variable object

Posted: Mon Feb 15, 2010 4:27 pm
by JohnR
Hi

I have encountered using the debugger the error message, "mi_cmd_var_create: unable to create variable object", for the first time.

The function float64_to_int32() converts an IEEE double value back to an integer and behaves properly with the expected result if run without any breakpoint within the code of the function.

The double is defined as:

typedef struct {
unsigned int high, low;
} float64;

The start of the function is:

int32 float64_to_int32( float64 a )
{
flag aSign;
int16 aExp, shiftCount;
bits32 aSig0, aSig1, absZ, aSigExtra;
int32 z;

.......................................................

return z;

}

If I put a breakpoint anywhere within the function body (or in the line that calls the function), I get the above error message in a continuous loop until the kill button is pressed.

Yet the function works quite normally, produces the expected answer when no breakpoint is invoked.

Any help would be appreciated.

John.

Re: mi_cmd_var_create: unable to create variable object

Posted: Mon Feb 15, 2010 5:00 pm
by mike
Hi John,

Could you submit a support ticket on the XMOS site with the full source code (or a small example so we can reproduce this), thanks.

Mike

Re: mi_cmd_var_create: unable to create variable object

Posted: Mon Feb 15, 2010 7:01 pm
by JohnR
Hi Mike,

Sure - I will cut the code down to the offending section.

John.