mi_cmd_var_create: unable to create variable object

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
JohnR
Experienced Member
Posts: 93
Joined: Fri Dec 11, 2009 1:39 pm

mi_cmd_var_create: unable to create variable object

Postby JohnR » Mon Feb 15, 2010 4:27 pm

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.
User avatar
mike
Member++
Posts: 19
Joined: Fri Dec 11, 2009 11:21 am

Postby mike » Mon Feb 15, 2010 5:00 pm

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
JohnR
Experienced Member
Posts: 93
Joined: Fri Dec 11, 2009 1:39 pm

Postby JohnR » Mon Feb 15, 2010 7:01 pm

Hi Mike,

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

John.

Who is online

Users browsing this forum: No registered users and 0 guests